|
34 | 34 |
|
35 | 35 | $sites.each |String[1] $name, Hash $site| { |
36 | 36 | $active_theme = $site['active_theme'] |
| 37 | + $dir = "/srv/wordpress/sites/${name}" |
| 38 | + $host = $site['host'] |
37 | 39 |
|
38 | 40 | # Temporary while testing blogs on jquery-wp-content |
39 | 41 | # https://github.com/jquery/infrastructure-puppet/issues/17 |
|
46 | 48 | { name => 'jquery-actions', path => '/srv/wordpress/jquery-wp-content/plugins/jquery-actions.php', single_file => true, }, |
47 | 49 | { name => 'jquery-filters', path => '/srv/wordpress/jquery-wp-content/plugins/jquery-filters.php', single_file => true, }, |
48 | 50 | ] |
| 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 | + ] |
49 | 61 | } else { |
50 | 62 | $themes = [ |
51 | 63 | { name => 'jquery', path => '/srv/wordpress/blog.jquery.com-theme/jquery', }, |
52 | 64 | { name => $active_theme, path => "/srv/wordpress/blog.jquery.com-theme/${active_theme}", }, |
53 | 65 | ] |
54 | 66 | $plugins = [] |
| 67 | + $config_files = [] |
55 | 68 | } |
56 | 69 |
|
57 | 70 | wordpress::site { $name: |
|
61 | 74 | db_password_seed => $db_password_seed, |
62 | 75 | admin_email => $admin_email, |
63 | 76 | admin_password => $admin_password, |
| 77 | + config_files => $config_files, |
64 | 78 | themes => $themes, |
65 | 79 | plugins => $plugins, |
66 | | - base_path => "/srv/wordpress/sites/${name}", |
| 80 | + base_path => $dir, |
67 | 81 | } |
68 | 82 | } |
69 | 83 |
|
|
0 commit comments