Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- define apache_config ( $configname = $title ) {
- file { "/etc/apache2/sites-available/$configname":
- owner => "root",
- group => "root",
- mode => 0640,
- content => template("webserver/$configname.erb"),
- notify => Service[apache2]
- }
- file { "/etc/apache2/sites-enabled/$configname":
- ensure => link,
- target => "/etc/apache2/sites-available/$configname",
- notify => Service[apache2]
- }
- }
- define apache_config_remove ( $configname = $title ) {
- file { "/etc/apache2/sites-enabled/$configname":
- ensure => absent,
- notify => Service[apache2]
- }
- file { "/etc/apache2/sites-available/$configname":
- ensure => absent,
- notify => Service[apache2]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement