|
20 | 20 | include_recipe "wordpress" |
21 | 21 |
|
22 | 22 | passwords = data_bag_item("birthday20", "passwords") |
23 | | -wp2fa_encrypt_keys = data_bag_item("birthday20", "wp2fa_encrypt_keys") |
| 23 | +# wp2fa_encrypt_keys = data_bag_item("birthday20", "wp2fa_encrypt_keys") |
24 | 24 |
|
25 | 25 | directory "/srv/birthday20.openstreetmap.org" do |
26 | 26 | owner "wordpress" |
27 | 27 | group "wordpress" |
28 | 28 | mode "755" |
29 | 29 | end |
30 | 30 |
|
31 | | -wordpress_site "birthday20.openstreetmap.org" do |
32 | | - aliases ["birthday20.osm.org", "birthday20.openstreetmap.com", |
33 | | - "birthday20.openstreetmap.net", "birthday20.openstreetmaps.org"] |
34 | | - directory "/srv/birthday20.openstreetmap.org/wp" |
35 | | - database_name "osm-birthday20" |
36 | | - database_user "osm-birthday20-user" |
37 | | - database_password passwords["osm-birthday20-user"] |
38 | | - wp2fa_encrypt_key wp2fa_encrypt_keys["key"] |
39 | | - fpm_prometheus_port 11403 |
40 | | -end |
| 31 | +# wordpress_site "birthday20.openstreetmap.org" do |
| 32 | +# aliases ["birthday20.osm.org", "birthday20.openstreetmap.com", |
| 33 | +# "birthday20.openstreetmap.net", "birthday20.openstreetmaps.org"] |
| 34 | +# directory "/srv/birthday20.openstreetmap.org/wp" |
| 35 | +# database_name "osm-birthday20" |
| 36 | +# database_user "osm-birthday20-user" |
| 37 | +# database_password passwords["osm-birthday20-user"] |
| 38 | +# wp2fa_encrypt_key wp2fa_encrypt_keys["key"] |
| 39 | +# fpm_prometheus_port 11403 |
| 40 | +# end |
41 | 41 |
|
42 | | -wordpress_plugin "birthday20.openstreetmap.org-shareadraft" do |
43 | | - action :delete |
44 | | - plugin "shareadraft" |
45 | | - site "birthday20.openstreetmap.org" |
46 | | -end |
| 42 | +# wordpress_plugin "birthday20.openstreetmap.org-shareadraft" do |
| 43 | +# action :delete |
| 44 | +# plugin "shareadraft" |
| 45 | +# site "birthday20.openstreetmap.org" |
| 46 | +# end |
47 | 47 |
|
48 | | -wordpress_plugin "birthday20.openstreetmap.org-public-post-preview" do |
49 | | - plugin "public-post-preview" |
50 | | - site "birthday20.openstreetmap.org" |
51 | | -end |
| 48 | +# wordpress_plugin "birthday20.openstreetmap.org-public-post-preview" do |
| 49 | +# plugin "public-post-preview" |
| 50 | +# site "birthday20.openstreetmap.org" |
| 51 | +# end |
52 | 52 |
|
53 | 53 | template "/etc/cron.daily/birthday20-backup" do |
54 | 54 | source "backup-birthday20.cron.erb" |
|
57 | 57 | mode "750" |
58 | 58 | variables :passwords => passwords |
59 | 59 | end |
| 60 | + |
| 61 | +ssl_certificate new_resource.site do |
| 62 | + domains ["birthday20.openstreetmap.org", "birthday20.osm.org", "birthday20.openstreetmap.com", |
| 63 | + "birthday20.openstreetmap.net", "birthday20.openstreetmaps.org"] |
| 64 | +end |
0 commit comments