Skip to content

Commit f95f188

Browse files
committed
blogs: Create jquery-wp-content config file for blog.jquerymobile.com
Ref #17.
1 parent 9c92a5e commit f95f188

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

  • modules/profile/manifests/wordpress

modules/profile/manifests/wordpress/blogs.pp

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434

3535
$sites.each |String[1] $name, Hash $site| {
3636
$active_theme = $site['active_theme']
37+
$dir = "/srv/wordpress/sites/${name}"
38+
$host = $site['host']
3739

3840
# Temporary while testing blogs on jquery-wp-content
3941
# https://github.com/jquery/infrastructure-puppet/issues/17
@@ -46,12 +48,23 @@
4648
{ name => 'jquery-actions', path => '/srv/wordpress/jquery-wp-content/plugins/jquery-actions.php', single_file => true, },
4749
{ name => 'jquery-filters', path => '/srv/wordpress/jquery-wp-content/plugins/jquery-filters.php', single_file => true, },
4850
]
51+
52+
file { "${dir}/jquery-config.php":
53+
ensure => file,
54+
content => template('profile/wordpress/blogs/jquery-config.php.erb'),
55+
require => Exec["wp-download-${name}"],
56+
}
57+
58+
$config_files = [
59+
"${dir}/jquery-config.php",
60+
]
4961
} else {
5062
$themes = [
5163
{ name => 'jquery', path => '/srv/wordpress/blog.jquery.com-theme/jquery', },
5264
{ name => $active_theme, path => "/srv/wordpress/blog.jquery.com-theme/${active_theme}", },
5365
]
5466
$plugins = []
67+
$config_files = []
5568
}
5669

5770
wordpress::site { $name:
@@ -61,9 +74,10 @@
6174
db_password_seed => $db_password_seed,
6275
admin_email => $admin_email,
6376
admin_password => $admin_password,
77+
config_files => $config_files,
6478
themes => $themes,
6579
plugins => $plugins,
66-
base_path => "/srv/wordpress/sites/${name}",
80+
base_path => $dir,
6781
}
6882
}
6983

0 commit comments

Comments
 (0)