forked from theforeman/puppet-foreman_proxy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request theforeman#2 from GregSutcliffe/master
Master forked to "oldstable" for older puppet users Merged to master
- Loading branch information
Showing
7 changed files
with
110 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class foreman_proxy::proxydhcp { | ||
include foreman_proxy::params | ||
|
||
package { "net-ping": | ||
ensure => installed, | ||
provider => 'gem', | ||
} | ||
|
||
class { 'dhcp': | ||
dnsdomain => [ | ||
"${::domain}", | ||
"100.168.192.in-addr.arpa", | ||
], | ||
nameservers => ["${::ipaddress}"], | ||
ntpservers => ['us.pool.ntp.org'], | ||
interfaces => ['eth0'], | ||
#dnsupdatekey => "/etc/bind/keys.d/foreman", | ||
#require => Bind::Key[ 'foreman' ], | ||
pxeserver => "${::ipaddress}", | ||
pxefilename => 'pxelinux.0', | ||
dhcp_monitor => false, | ||
} | ||
|
||
dhcp::pool{ "${::domain}": | ||
network => "${::network_eth0}", | ||
mask => "${::netmask_eth0}", | ||
range => "${foreman_proxy::params::range}", | ||
gateway => "${foreman_proxy::params::gateway}", | ||
} | ||
|
||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class foreman_proxy::proxydns { | ||
include foreman_proxy::params | ||
include dns | ||
|
||
dns::zone { "${::domain}": | ||
soa => "${::fqdn}", | ||
reverse => "false", | ||
soaip => "${::ipaddress}", | ||
} | ||
|
||
dns::zone { "100.168.192.in-addr.arpa": | ||
soa => "${::fqdn}", | ||
reverse => "true", | ||
soaip => "${::ipaddress}", | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
class foreman_proxy::service { | ||
service {'foreman-proxy': | ||
ensure => running, | ||
require => Class['foreman_proxy::config'] | ||
|
||
service { 'foreman-proxy': | ||
ensure => running, | ||
require => Class['foreman_proxy::config'], | ||
} | ||
|
||
} |
This file contains 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