Commit 6d98bb76d6dc4754bf7976c78c0d9f4e23fa9c07

Authored by Paulo Tada
Committed by Sergio Oliveira
1 parent 02ac4adc
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Update colab default recipes: adding memcached and redis templates

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Paulo Tada <paulohtfs@gmail.com>
Showing 1 changed file with 21 additions and 6 deletions   Show diff stats
cookbooks/colab/recipes/default.rb
... ... @@ -106,18 +106,33 @@ template &#39;/etc/colab/settings.d/01-apps.yaml&#39; do
106 106 )
107 107 end
108 108  
  109 +# Adding settings.d files
109 110 template '/etc/colab/settings.d/02-logging.py' do
110 111 owner 'root'
111 112 group 'colab'
112 113 mode 0640
113   - notifies :restart, 'service[colab]'
114 114 end
115 115  
116 116 template '/etc/colab/settings.d/03-sentry.py' do
117 117 owner 'root'
118 118 group 'colab'
119 119 mode 0640
120   - notifies :restart, 'service[colab]'
  120 +end
  121 +
  122 +template '/etc/colab/settings.d/memcached.py' do
  123 + owner 'root'
  124 + group 'colab'
  125 + mode 0640
  126 +end
  127 +
  128 +template '/etc/colab/settings.d/redis.py' do
  129 + owner 'root'
  130 + group 'colab'
  131 + mode 0640
  132 +end
  133 +
  134 +service 'colab' do
  135 + action :restart
121 136 end
122 137  
123 138 # Adding plugins for colab
... ... @@ -125,25 +140,25 @@ template &#39;/etc/colab/plugins.d/gitlab.py&#39; do
125 140 owner 'root'
126 141 group 'colab'
127 142 mode 0640
128   - notifies :restart, 'service[colab]'
129 143 end
130 144  
131 145 template '/etc/colab/plugins.d/noosfero.py' do
132 146 owner 'root'
133 147 group 'colab'
134 148 mode 0640
135   - notifies :restart, 'service[colab]'
136 149 end
137 150  
138 151 template '/etc/colab/plugins.d/spb.py' do
139 152 owner 'root'
140 153 group 'colab'
141 154 mode 0640
142   - notifies :restart, 'service[colab]'
143 155 end
144 156  
145 157 execute 'colab-admin migrate'
146   -# End adding plugins for colab
  158 +
  159 +service 'colab' do
  160 + action :restart
  161 +end
147 162  
148 163 directory '/var/lib/colab-assets/spb/' do
149 164 owner 'root'
... ...