Skip to content

Instantly share code, notes, and snippets.

@velocity303
Created December 14, 2015 15:58
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 velocity303/f870f3924319bc409141 to your computer and use it in GitHub Desktop.
Save velocity303/f870f3924319bc409141 to your computer and use it in GitHub Desktop.
Wordpress Puppet Profile
class profile::example::wordpress {
include apache
include apache::mod::php
include mysql::server
include mysql::bindings
include mysql::bindings::php
apache::vhost { $::fqdn:
priority => '10',
vhost_name => $::fqdn,
port => '80',
docroot => '/var/www/html',
} ->
class { '::wordpress':
install_dir => '/var/www/html',
}
firewall { '80 allow apache access':
port => [80],
proto => tcp,
action => accept,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment