Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #10333: Document how to build a and agent #296

Conversation

peckpeck
Copy link
Member

@peckpeck peckpeck commented Mar 2, 2017

Copy link
Member

@ncharles ncharles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great start ! Thank you


Make sure you have network access and the git command.

Got to your build directory and checkout rudder-packages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: Go

cd rudder-packages/rudder-agent
```

Now choose one of the 3 next chapter, depending on your case : debian package, redhat package or other.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next 3 chapters
on your case:
(no space before colon)


Choose the branch to build
```
# or any branch >= 4.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment is misleading - it should be "For branch 4.1"

Set the version to build:

* Update the debian/changelog file to make the first entry match the version you want to build.
* Edit the SOURCES/Makefile file and put a value into RUDDER_VERSION_TO_PACKAGE: see http://www.rudder-project.org/archives/ for a complete list of available versions.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and set the value of RUDDER_VERSION_TO_PACKAGE

Run the redhat package builder

```
# TODO this is not enough
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, this is not enough :)


===== Build an install localy

Before building the agent, you must decide on some environment variables :
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no space before :


```
# example
env="RUDDER_VERSION_TO_PACKAGE=4.1.0~beta3 DESTDIR=/ USE_SYSTEM_PERL=true"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you document with a non beta version ?

@peckpeck
Copy link
Member Author

Commit modified

@peckpeck peckpeck force-pushed the ust_10333/document_how_to_build_a_and_agent branch from 5e524cd to 465f738 Compare March 10, 2017 11:40

Choose the branch to build
```
# For branch 4.1 (branches before 4.1 are not rupported)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supported

cd rudder-agent
```

Now choose one of the 3 next chapter, depending on your case: debian package, redhat package or other.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More precisely dpkg or rpm

* Edit the SOURCES/Makefile file and set the value of RUDDER_VERSION_TO_PACKAGE: see http://www.rudder-project.org/archives/ for a complete list of available versions.

```
# make sure you are un in rudder-agent, then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are in

@peckpeck
Copy link
Member Author

Commit modified

@peckpeck peckpeck force-pushed the ust_10333/document_how_to_build_a_and_agent branch from 465f738 to 2992c8d Compare March 13, 2017 10:30

The package will be stored in the parent directory.

===== Build a redhat package
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rpm


Now choose one of the 3 next chapter, depending on your case: dpkg (debian like package), rpm (redhat like package) or other.

===== Build a debian package
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dpkg

@peckpeck
Copy link
Member Author

Commit modified

@peckpeck peckpeck force-pushed the ust_10333/document_how_to_build_a_and_agent branch from 2992c8d to e685605 Compare March 13, 2017 10:37
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit e685605 into Normation:branches/rudder/4.1 Mar 13, 2017
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants