garcun 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26509b8fe8fbb0ccb4823f7447687b5d43bc20e1
|
4
|
+
data.tar.gz: ef77e6ed6bd33be45884cac2a74440b1b242fedb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0b99adc4e2650a5b7097d42a223267f213688601a98dcdeea9bb4bbea62318d864d5f9c9d416f10e1673d60fdcc1287519b0f989c75a9ce12a5cff9e4ee85d3
|
7
|
+
data.tar.gz: 477453d862566537cc766fc0c7e8605907e41778af47789b89a892130adeda034e49caa521d38c31aa57b0f1e4f5ccaaaa6249bef46b19ae59267496f41a934d
|
@@ -36,6 +36,13 @@ module Garcon
|
|
36
36
|
node
|
37
37
|
end
|
38
38
|
|
39
|
+
def platform_recipes
|
40
|
+
case node[:platform]
|
41
|
+
when 'debian', 'ubuntu'
|
42
|
+
run_context.include_recipe 'apt::default'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
39
46
|
# Boolean indicating if the given Ruby Gem is installed.
|
40
47
|
#
|
41
48
|
# @param [String] gem
|
@@ -87,6 +87,7 @@ class Chef
|
|
87
87
|
end
|
88
88
|
|
89
89
|
def action_run
|
90
|
+
platform_recipes
|
90
91
|
civilize_platform
|
91
92
|
civilize_locale
|
92
93
|
civilize_docker if docker? && r.docker
|
@@ -124,19 +125,10 @@ class Chef
|
|
124
125
|
def civilize_platform
|
125
126
|
case node[:platform]
|
126
127
|
when 'debian', 'ubuntu'
|
127
|
-
run_context.include_recipe 'apt::default'
|
128
128
|
run_context.include_recipe 'motd-tail::default'
|
129
129
|
m = Chef::Resource::MotdTail.new('/etc/motd.tail', run_context)
|
130
130
|
m.template_source 'motd.erb'
|
131
131
|
m.action :create
|
132
|
-
when 'fedora'
|
133
|
-
run_context.include_recipe 'yum-fedora::default'
|
134
|
-
when 'centos'
|
135
|
-
run_context.include_recipe 'yum-epel::default'
|
136
|
-
run_context.include_recipe 'yum-centos::default'
|
137
|
-
when 'amazon'
|
138
|
-
run_context.include_recipe 'yum-epel::default'
|
139
|
-
run_context.include_recipe 'yum-amazon::default'
|
140
132
|
end
|
141
133
|
end
|
142
134
|
|
data/lib/garcon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garcun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Harding
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|