Skip to content

Instantly share code, notes, and snippets.

@dizz
Created July 12, 2012 11:52
Show Gist options
  • Save dizz/3097690 to your computer and use it in GitHub Desktop.
Save dizz/3097690 to your computer and use it in GitHub Desktop.
foreman preseed default finish file
cat > /etc/puppet/puppet.conf << EOF
<%= snippets "puppet.conf" %>
EOF
/bin/sed -i 's/^START=no/START=yes/' /etc/default/puppet
/bin/touch /etc/puppet/namespaceauth.conf
/usr/sbin/puppetd --config /etc/puppet/puppet.conf --onetime --tags no_such_tag --server <%= @host.puppetmaster %>.<%= @host.domain %> --no-daemonize
/usr/bin/wget --quiet --output-document=/dev/null --no-check-certificate <%= foreman_url %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment