Commit ccdd0f03861c1df4679b7f04c639d9b7a0b835e9
Committed by
Sergio Oliveira
1 parent
64035491
Exists in
master
and in
54 other branches
Changing settings templates and adding plugins templates on default recipes
Showing
1 changed file
with
28 additions
and
10 deletions
Show diff stats
cookbooks/colab/recipes/default.rb
| ... | ... | @@ -54,14 +54,7 @@ template '/etc/sysconfig/colab' do |
| 54 | 54 | notifies :restart, 'service[colab]' |
| 55 | 55 | end |
| 56 | 56 | |
| 57 | -template '/etc/colab/settings.yaml' do | |
| 58 | - owner 'root' | |
| 59 | - group 'colab' | |
| 60 | - mode 0640 | |
| 61 | - notifies :restart, 'service[colab]' | |
| 62 | -end | |
| 63 | - | |
| 64 | -template '/etc/colab/settings.d/00-database.yaml' do | |
| 57 | +template '/etc/colab/settings.d/00-database.py' do | |
| 65 | 58 | owner 'root' |
| 66 | 59 | group 'colab' |
| 67 | 60 | mode 0640 |
| ... | ... | @@ -113,20 +106,45 @@ template '/etc/colab/settings.d/01-apps.yaml' do |
| 113 | 106 | ) |
| 114 | 107 | end |
| 115 | 108 | |
| 116 | -template '/etc/colab/settings.d/02-logging.yaml' do | |
| 109 | +template '/etc/colab/settings.d/02-logging.py' do | |
| 117 | 110 | owner 'root' |
| 118 | 111 | group 'colab' |
| 119 | 112 | mode 0640 |
| 120 | 113 | notifies :restart, 'service[colab]' |
| 121 | 114 | end |
| 122 | 115 | |
| 123 | -template '/etc/colab/settings.d/03-sentry.yaml' do | |
| 116 | +template '/etc/colab/settings.d/03-sentry.py' do | |
| 124 | 117 | owner 'root' |
| 125 | 118 | group 'colab' |
| 126 | 119 | mode 0640 |
| 127 | 120 | notifies :restart, 'service[colab]' |
| 128 | 121 | end |
| 129 | 122 | |
| 123 | +# Adding plugins for colab | |
| 124 | +template '/etc/colab/plugins.d/gitlab.py' do | |
| 125 | + owner 'root' | |
| 126 | + group 'colab' | |
| 127 | + mode 0640 | |
| 128 | + notifies :restart, 'service[colab]' | |
| 129 | +end | |
| 130 | + | |
| 131 | +template '/etc/colab/plugins.d/noosfero.py' do | |
| 132 | + owner 'root' | |
| 133 | + group 'colab' | |
| 134 | + mode 0640 | |
| 135 | + notifies :restart, 'service[colab]' | |
| 136 | +end | |
| 137 | + | |
| 138 | +template '/etc/colab/plugins.d/spb.py' do | |
| 139 | + owner 'root' | |
| 140 | + group 'colab' | |
| 141 | + mode 0640 | |
| 142 | + notifies :restart, 'service[colab]' | |
| 143 | +end | |
| 144 | + | |
| 145 | +execute 'colab-admin migrate' | |
| 146 | +# End adding plugins for colab | |
| 147 | + | |
| 130 | 148 | directory '/var/lib/colab-assets/spb/' do |
| 131 | 149 | owner 'root' |
| 132 | 150 | group 'root' | ... | ... |