caterer 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/caterer/version.rb +1 -1
- data/lib/templates/provisioner/chef_solo/bootstrap.sh +10 -38
- metadata +1 -1
data/lib/caterer/version.rb
CHANGED
@@ -53,26 +53,26 @@ detect_platform() {
|
|
53
53
|
echo $platform
|
54
54
|
}
|
55
55
|
|
56
|
-
|
57
|
-
echo "installing
|
56
|
+
install() {
|
57
|
+
echo "installing $1..."
|
58
58
|
case "$(detect_platform)" in
|
59
59
|
"ubuntu" )
|
60
|
-
apt-get -y --force-yes install
|
60
|
+
apt-get -y --force-yes install $1
|
61
61
|
;;
|
62
62
|
"debian" )
|
63
|
-
apt-get -y --force-yes install
|
63
|
+
apt-get -y --force-yes install $1
|
64
64
|
;;
|
65
65
|
"el" )
|
66
|
-
yum -y install
|
66
|
+
yum -y install $1
|
67
67
|
;;
|
68
68
|
"fedora" )
|
69
|
-
yum -y install
|
69
|
+
yum -y install $1
|
70
70
|
;;
|
71
71
|
"suse" )
|
72
|
-
yast -i
|
72
|
+
yast -i $1
|
73
73
|
;;
|
74
74
|
"sles" )
|
75
|
-
yast -i
|
75
|
+
yast -i $1
|
76
76
|
;;
|
77
77
|
*)
|
78
78
|
echo "sorry, I don't have a bootstrap for this platform"
|
@@ -81,37 +81,9 @@ install_curl() {
|
|
81
81
|
esac
|
82
82
|
}
|
83
83
|
|
84
|
-
|
85
|
-
echo "installing rsync..."
|
86
|
-
case "$(detect_platform)" in
|
87
|
-
"ubuntu" )
|
88
|
-
apt-get -y --force-yes install rsync
|
89
|
-
;;
|
90
|
-
"debian" )
|
91
|
-
apt-get -y --force-yes install rsync
|
92
|
-
;;
|
93
|
-
"el" )
|
94
|
-
yum -y install rsync
|
95
|
-
;;
|
96
|
-
"fedora" )
|
97
|
-
yum -y install rsync
|
98
|
-
;;
|
99
|
-
"suse" )
|
100
|
-
yast -i rsync
|
101
|
-
;;
|
102
|
-
"sles" )
|
103
|
-
yast -i rsync
|
104
|
-
;;
|
105
|
-
*)
|
106
|
-
echo "sorry, I don't have a bootstrap for this platform"
|
107
|
-
exit 1
|
108
|
-
;;
|
109
|
-
esac
|
110
|
-
}
|
111
|
-
|
112
|
-
exists curl || install_curl
|
84
|
+
exists curl || install curl
|
113
85
|
|
114
|
-
exists rsync ||
|
86
|
+
exists rsync || install rsync
|
115
87
|
|
116
88
|
# install chef-solo
|
117
89
|
exists chef-solo || curl -L https://www.opscode.com/chef/install.sh | bash
|