Skip to content

Instantly share code, notes, and snippets.

@bradleybeddoes
Created November 4, 2009 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradleybeddoes/225773 to your computer and use it in GitHub Desktop.
Save bradleybeddoes/225773 to your computer and use it in GitHub Desktop.
class wordpressmu {
file { "/var/www/apps/wordpressmu":
ensure => directory,
owner => "root",
group => "root",
mode => 755,
}
file { "/root/puppet-tars/wordpress-2.7.1.tar.gz":
ensure => directory,
owner => "root",
group => "root",
recurse => true,
source => "puppet:///wordpressmu/2.7.1.tar.gz",
require => File["/root/puppet-tars"],
notify => Exec["Extract WordpressMU"]
}
file { "/root/puppet-tars/wordpress-plugins.tar.gz":
ensure => directory,
owner => "root",
group => "root",
recurse => true,
source => "puppet:///wordpressmu/plugins.tar.gz",
require => File["/root/puppet-tars"],
notify => Exec["Extract WordpressMU Plugins"]
}
exec { "Extract WordpressMU" :
command => "tar -zxf /root/puppet-tars/wordpress-2.7.1.tar.gz; ln -s 2.7.1 current",
cwd => "/var/www/apps/wordpressmu",
require => [ File["/var/www/apps/wordpressmu"] ],
refreshonly => true
}
exec { "Extract WordpressMU Plugins" :
command => "tar -zxf /root/puppet-tars/wordpress-plugins.tar.gz",
cwd => "/var/www/apps/wordpressmu",
require => [ File["/var/www/apps/wordpressmu"] ],
refreshonly => true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment