Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Trying a different approach. Doing Class['foo'] -> Class['bar']. Or d…

…o foo before bar.
  • Loading branch information...
commit 5a1436b4e0c41777fdc2dd62364fa16901d46438 1 parent ee57044
@uberj authored
Showing with 22 additions and 15 deletions.
  1. +8 −1 tinydns/manifests/init.pp
  2. +14 −14 tinydns/manifests/setup.pp
View
9 tinydns/manifests/init.pp
@@ -1,5 +1,12 @@
class tinydns {
-
+ # Do work.
+
+ include tinydns::users
+ include tinydns::daemontools
+ include tinydns::utils # Contains all packages.
include tinydns::setup
+ Class['tinydns::utils'] -> Class['tinydns::setup']
+ Class['tinydns::users'] -> Class['tinydns::setup']
+ Class['tinydns::daemontools'] -> Class['tinydns::setup']
}
View
28 tinydns/manifests/setup.pp
@@ -2,26 +2,26 @@
include tinydns::users
include tinydns::daemontools
include tinydns::utils # Contains all packages.
- #exec { "rebuild-tinydns-data":
- # cwd => "/etc/tinydns/root",
- # command => "/usr/bin/make",
- # refreshonly => true,
+ exec { "rebuild-tinydns-data":
+ cwd => "/etc/tinydns/root",
+ command => "/usr/bin/make",
+ refreshonly => true,
# require => [Package["djbdns"], Exec["tinydns-setup"], Exec["dnscache-setup"]],
- # notify => Service["dnscache"]
- #}
+ notify => Service["dnscache"]
+ }
exec {
"tinydns-setup":
command => "/usr/bin/tinydns-conf tinydns dnslog /etc/tinydns 127.0.0.1",
creates => "/etc/tinydns",
- require => [Class['tinydns::utils'],Class['tinydns::users']]
+ # require => [Class['tinydns::utils'],Class['tinydns::users']]
}
exec {
"dnscache-setup":
command => "/usr/bin/dnscache-conf dnscache dnslog /etc/dnscache $ipaddress",
creates => "/etc/dnscache",
- require => [Class['tinydns::utils'],Class['tinydns::users']]
+ # require => [Class['tinydns::utils'],Class['tinydns::users']]
}
@@ -31,24 +31,24 @@
"/etc/service":
ensure => directory,
mode => 0640,
- require => [Exec["tinydns-setup"], Exec["dnscache-setup"]],
+ # require => [Exec["tinydns-setup"], Exec["dnscache-setup"]],
}
file {
"/etc/service/tinydns":
ensure => link,
target => "/etc/tinydns",
- require => [Exec["tinydns-setup"], Exec["dnscache-setup"]],
+ # require => [Exec["tinydns-setup"], Exec["dnscache-setup"]],
}
file {
"/etc/service/dnscache":
ensure => link,
target => "/etc/dnscache",
- require => [Exec["tinydns-setup"], Exec["dnscache-setup"]],
+ # require => [Exec["tinydns-setup"], Exec["dnscache-setup"]],
}
file { "/etc/tinydns/log/run":
- require => Exec["tinydns-setup"],
+ # require => Exec["tinydns-setup"],
notify => Service["tinydns-log"],
ensure => present,
owner => "root",
@@ -59,7 +59,7 @@
file {
"/etc/dnscache/log/run":
- require => Exec["dnscache-setup"],
+ # require => Exec["dnscache-setup"],
notify => Service["dnscache-log"],
owner => "root",
group => "root",
@@ -68,7 +68,7 @@
}
file {
"/etc/dnscache/root/servers/internal":
- require => Exec["dnscache-setup"],
+ # require => Exec["dnscache-setup"],
ensure => present,
content => "127.0.0.1",
}
Please sign in to comment.
Something went wrong with that request. Please try again.