Skip to content

Commit

Permalink
tweaks to generation of foreman_client.sh.
Browse files Browse the repository at this point in the history
* install rubygems from foreman repo for now to meet that dependency
  requirement.
* call "puppet agent" twice so that when we start the service, it
  should be fully initialized (cert pulled down and known to the
  puppet server).
  • Loading branch information
cwolferh committed May 3, 2013
1 parent 6e6b166 commit 1a64c1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions foreman_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ yum-config-manager --enable rhel-6-server-optional-rpms
yum clean all
# install dependent packages
yum install -y http:https://yum.theforeman.org/releases/latest/el6/x86_64/rubygems-1.8.10-1.el6.noarch.rpm
yum install -y augeas puppet git policycoreutils-python
# Set PuppetServer
Expand All @@ -127,6 +128,8 @@ fi
# check in to foreman
puppet agent --test
sleep 1
puppet agent --test
/etc/init.d/puppet start
EOF
Expand Down

0 comments on commit 1a64c1f

Please sign in to comment.