stemcell 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/stemcell/templates/bootstrap.sh.erb +5 -2
- data/lib/stemcell/version.rb +1 -1
- metadata +1 -1
|
@@ -104,7 +104,8 @@ configure_chef() {
|
|
|
104
104
|
"role[$branch]",
|
|
105
105
|
"role[$role]"
|
|
106
106
|
],
|
|
107
|
-
"branch": "$branch"
|
|
107
|
+
"branch": "$branch",
|
|
108
|
+
"role": "$role"
|
|
108
109
|
}
|
|
109
110
|
EOF
|
|
110
111
|
else
|
|
@@ -112,7 +113,8 @@ EOF
|
|
|
112
113
|
cat<<EOF>/etc/chef/solo.json
|
|
113
114
|
{
|
|
114
115
|
"run_list": "role[$role]",
|
|
115
|
-
"branch": "$branch"
|
|
116
|
+
"branch": "$branch",
|
|
117
|
+
"role": "$role"
|
|
116
118
|
}
|
|
117
119
|
EOF
|
|
118
120
|
fi
|
|
@@ -134,6 +136,7 @@ configure_converger() {
|
|
|
134
136
|
cat<<EOF>/usr/local/bin/converge
|
|
135
137
|
#!/bin/bash -e
|
|
136
138
|
|
|
139
|
+
echo doing a hard reset to origin/$branch
|
|
137
140
|
cd $repo_dir
|
|
138
141
|
GIT_SSH=$git_wrapper git fetch
|
|
139
142
|
git reset --hard origin/$branch
|
data/lib/stemcell/version.rb
CHANGED