Skip to content

Commit 7b47e1f

Browse files
committed
Update docs
1 parent 4573c8a commit 7b47e1f

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

docs/bootstrap_vm.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,20 @@ sudo mkdir -p /etc/cinc
168168
sudo ln -snf /etc/cinc /etc/chef
169169
170170
curl -L https://omnitruck.cinc.sh/install.sh | sudo bash
171+
curl -L https://omnitruck.cinc.sh/install.sh | sudo bash -s -- -v 18.4.12
172+
171173
172174
# /opt/chef -> /opt/cinc
173175
sudo ln -snf /opt/cinc /opt/chef
174176
175-
# prime onepassword secret /etc/cinc/op_service_account_token
176-
# Install 1Password cli
177-
sudo apt-get update
178-
sudo apt-get install unzip
179-
ARCH="<choose between 386/amd64/arm/arm64>"
180-
curl -o /tmp/op.zip https://cache.agilebits.com/dist/1P/op2/pkg/v2.29.0/op_linux_amd64_v2.29.0.zip
181-
sudo unzip /tmp/op.zip op -d /usr/local/bin/
182-
rm -f /tmp/op.zip
177+
## prime onepassword secret /etc/cinc/op_service_account_token
178+
## Install 1Password cli
179+
# sudo apt-get update
180+
# sudo apt-get install unzip
181+
# ARCH="<choose between 386/amd64/arm/arm64>"
182+
# curl -o /tmp/op.zip https://cache.agilebits.com/dist/1P/op2/pkg/v2.30.3/op_linux_amd64_v2.30.3.zip
183+
# sudo unzip /tmp/op.zip op -d /usr/local/bin/
184+
# rm -f /tmp/op.zip
183185
184186
# op user get --me
185187
@@ -222,6 +224,7 @@ sudo tee /etc/chef/run-list.json <<EOF
222224
}
223225
EOF
224226
227+
sudo apt-get install git
225228
sudo mkdir -p /var/chef /var/chef/repos /var/log/chef
226229
cd /var/chef/repos
227230
sudo git clone https://github.com/boxcutter/chef-cookbooks.git \
@@ -413,7 +416,7 @@ sudo mkdir -p /etc/cinc
413416
# /etc/chef -> /etc/cinc
414417
sudo ln -snf /etc/cinc /etc/chef
415418
416-
curl -L https://omnitruck.cinc.sh/install.sh | sudo bash
419+
curl -L https://omnitruck.cinc.sh/install.sh | sudo bash -s -- -v 18.4.12
417420
418421
# /opt/chef -> /opt/cinc
419422
sudo ln -snf /opt/cinc /opt/chef
@@ -422,7 +425,7 @@ sudo ln -snf /opt/cinc /opt/chef
422425
# Install 1Password cli
423426
sudo dnf install unzip
424427
ARCH="<choose between 386/amd64/arm/arm64>"
425-
curl -o /tmp/op.zip https://cache.agilebits.com/dist/1P/op2/pkg/v2.29.0/op_linux_amd64_v2.29.0.zip
428+
curl -o /tmp/op.zip https://cache.agilebits.com/dist/1P/op2/pkg/v2.30.3/op_linux_amd64_v2.30.3.zip
426429
sudo unzip /tmp/op.zip op -d /usr/local/bin/
427430
rm -f /tmp/op.zip
428431

docs/taste-tester.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ sudo apt-get install cmake
1010
# linked against the system openssl and won't work properly
1111
export OPENSSL_ROOT_DIR=/opt/cinc-workstation/embedded
1212
13-
$ eval "$(cinc shell-init bash)
13+
$ eval "$(cinc shell-init bash)"
1414
$ which cinc
1515
/opt/cinc-workstation/bin/cinc
1616
1717
cinc gem install taste_tester
1818
1919
sudo mkdir -p /usr/local/etc/taste-tester
20-
sudo cp ~/github/boxcutter/boxcutter-chef-cookbooks/cookbooks/boxcutter_chef/files/taste-tester/taste-tester-plugin.rb /usr/local/etc/taste-tester
21-
sudo cp ~/github/boxcutter/boxcutter-chef-cookbooks/cookbooks/boxcutter_chef/files/taste-tester/taste-tester.conf /usr/local/etc/taste-tester
20+
# sudo cp ~/github/boxcutter/boxcutter-chef-cookbooks/cookbooks/boxcutter_chef/files/taste-tester/taste-tester-plugin.rb /usr/local/etc/taste-tester
21+
# sudo cp ~/github/boxcutter/boxcutter-chef-cookbooks/cookbooks/boxcutter_chef/files/taste-tester/taste-tester.conf /usr/local/etc/taste-tester
2222
23-
sudo tee /usr/local/etc/taste-tester/taste-tester-plugin.rb <<EOF
23+
sudo tee /usr/local/etc/taste-tester/taste-tester-plugin.rb <<'EOF'
2424
def self.test_remote_client_rb_extra_code(_hostname)
2525
<<~EOF
2626
@@ -31,6 +31,10 @@ def self.test_remote_client_rb_extra_code(_hostname)
3131
json_attribs '/etc/cinc/run-list.json'
3232
ohai.critical_plugins ||= []
3333
ohai.critical_plugins += [:Passwd]
34+
ohai.critical_plugins += [:ShardSeed]
35+
ohai.optional_plugins ||= []
36+
ohai.optional_plugins += [:Passwd]
37+
ohai.optional_plugins += [:ShardSeed]
3438
EOF
3539
end
3640
EOF

0 commit comments

Comments
 (0)