Sha256: d39deb256168f65643af0c6a06b983ab81652b902e4e415122c63b3c90789e5c
Contents?: true
Size: 902 Bytes
Versions: 3
Compression:
Stored size: 902 Bytes
Contents
# This is starter example rna template. # This is meant be be modified to your needs. default_includes 'base' # Pre processing rules that run at the beginning pre_rule do if role != 'base' node[:application] = nil node[:deploy_code] = false node[:framework_env] = 'production' node[:repository] = nil end node[:pre_rule] = 1 node[:chef_branch] = 'prod' if role =~ /^prod/ node[:chef_branch] = 'master' if role =~ /^stag/ end settings[:sendgrid][:relayhost] = "smtp.sendgrid.net" # Roles role 'base' do role_list ['base'] end # Post processing rules that run at the end post_rule do node[:post_rule] = 2 node[:framework_env] = 'production' if role =~ /^prod/ node[:framework_env] = 'staging' if role =~ /^stag/ list = role.split('-') if list.size == 3 env, repo, role = list role_list ['base', "#{repo}_#{role}"] node[:application] = repo end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rna-0.3.8 | spec/project/config/rna.rb |
rna-0.3.7 | spec/project/config/rna.rb |
rna-0.3.6 | spec/project/config/rna.rb |