This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ubuntu: { | |
$root = "/var/lib/tftpboot/" | |
$daemon = true | |
$service = 'tftpd-hpa' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$servername = $ipaddress_eth1 | |
# Note: There is a bug in the Ubuntu DHCP directory locations - remove any references of '3' in these paths. | |
$dhcp = true | |
$dhcp_interface = 'eth1' | |
$dhcp_reverse = '56.168.192.in-addr.arpa' | |
$gateway = '192.168.56.2' | |
$range = '192.168.56.3 192.168.56.200' | |
# Enabling DNS is optional but recommended |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
forwarders { | |
8.8.8.8; | |
8.8.4.4; | |
208.67.222.222; | |
208.67.222.220; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo include puppet, puppet::server, foreman, foreman_proxy | puppet apply --modulepath /etc/puppet/modules/common/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -i 's/^START=no/START=yes/' /etc/default/foreman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service foreman start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
err: Removing mount files: /etc/puppet/files does not exist or is not a directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
err: /Stage[main]/Foreman_proxy::Config/Augeas[sudo-foreman-proxy]/returns: change from need_to_run to 0 failed: Save failed with return code false | |
notice: /Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]: Dependency Augeas[sudo-foreman-proxy] has failures: true | |
warning: /Stage[main]/Foreman_proxy::Service/Service[foreman-proxy]: Skipping because of failed dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file{'/etc/sudoers.d/foreman': | |
content => template('foreman_proxy/foreman.erb'), | |
owner => root, | |
group => root, | |
mode => '0440' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= scope.lookupvar("foreman_proxy::params::user") %> ALL = NOPASSWD: <%= scope.lookupvar("foreman_proxy::params::puppetrun_cmd") %> | |
<%= scope.lookupvar("foreman_proxy::params::user") %> ALL = NOPASSWD: /usr/bin/puppet | |
<%= scope.lookupvar("foreman_proxy::params::user") %> ALL = NOPASSWD: <%= scope.lookupvar("foreman_proxy::params::puppetca_cmd") %> | |
<%= scope.lookupvar("foreman_proxy::params::user") %> ALL = NOPASSWD: /usr/bin/puppet cert * | |
Defaults:<%= scope.lookupvar("foreman_proxy::params::user") %> !requiretty |