Created
October 14, 2013 19:27
-
-
Save sts/6980723 to your computer and use it in GitHub Desktop.
Puppet: Is there a solution to avoid dependency on line #33?
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
class apt { | |
include apt::update | |
anchor { 'apt::update': | |
require => Class['apt::update'] | |
} | |
} | |
class apt::update { | |
exec { 'aptitude_update': | |
refreshonly => true, | |
} | |
} | |
define apt::sources_list() { | |
file { "/etc/apt/sources.list.d/${name}": | |
notify => Exec['aptitude_update'] | |
} | |
anchor { "apt::sources_list::${name}": | |
require => Class['apt::update'] | |
} | |
} | |
class php | |
{ | |
apt::sources_list { "dotdeb.org": | |
# .... | |
} | |
package { "php5-common": | |
require => Class["apt"] | |
} | |
} | |
node "host01" { | |
include apt | |
include php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment