Skip to content

Commit

Permalink
Merge pull request redhat-openstack#18 from cwolferh/twig
Browse files Browse the repository at this point in the history
work in progress-- "puppet apply" tweaks.  note, no puppet::server
  • Loading branch information
jsomara committed May 24, 2013
2 parents 24ae21a + 8a12b4b commit 0cd53c5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion bin/foreman_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,27 @@ augtool -s set /files/etc/puppet/puppet.conf/agent/server $PUPPETMASTER
augtool -s set /files/etc/puppet/puppet.conf/main/pluginsync true

pushd $FOREMAN_INSTALLER_DIR
scl enable ruby193 "puppet apply --verbose -e 'include puppet, puppet::server, passenger, foreman_proxy, foreman' --modulepath=./"
cat > installer.pp << EOM
include puppet
include passenger
class { 'foreman':
db_type => 'mysql',
custom_repo => true,
}
#
# Check foreman_proxy/manifests/{init,params}.pp for other options
class { 'foreman_proxy':
custom_repo => true,
dhcp => true,
dhcp_gateway => '10.0.0.1',
dhcp_range => '10.0.0.50 10.0.0.200',
dhcp_nameservers => '10.0.1.2,10.0.1.3',
dns => true,
dns_reverse => '0.0.10.in-addr.arpa',
}
EOM
scl enable ruby193 "puppet apply --verbose installer.pp --modulepath=. "
popd

########### FIX PASSENGER #################
Expand Down

0 comments on commit 0cd53c5

Please sign in to comment.