File tree 4 files changed +37
-23
lines changed
4 files changed +37
-23
lines changed Original file line number Diff line number Diff line change
1
+ # This Puppetfile is managed by Bolt. Do not edit.
2
+ # For more information, see https://pup.pt/bolt-modules
3
+
4
+ # The following directive installs modules to the managed moduledir.
5
+ moduledir '.modules'
6
+
7
+ mod 'puppet/format' , '1.0.0'
8
+ mod 'puppetlabs/bolt_shim' , '0.3.2'
9
+ mod 'puppetlabs/apply_helpers' , '0.3.0'
10
+ mod 'WhatsARanjit/node_manager' , '0.7.5'
11
+ mod 'puppetlabs/ruby_task_helper' , '0.5.1'
12
+ mod 'puppetlabs/stdlib' , '7.1.0'
13
+ mod 'nwops/container_inventory' , '0.1.1'
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : peadm_docker_examples
3
+ modules :
4
+ - name : nwops/container_inventory
5
+ version_requirement : " >= 0.1.1"
6
+ - name : puppetlabs/stdlib
7
+ version_requirement : " >= 6.5.0 < 8.0.0"
8
+ - puppetlabs/ruby_task_helper
9
+ - WhatsARanjit/node_manager
10
+ - puppetlabs/apply_helpers
11
+ - puppetlabs/bolt_shim
12
+ - puppet/format
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- # bundle install or pdk bundle install
3
- # bundle exec rake spec_prep or pdk bundle exec rake spec_prep
4
2
# must be in the spec/docker directory
5
- echo ' Please choose a PE architecture to provision: '
3
+ # must have bolt 3.18+ installed
6
4
downloads=$( realpath ./)
7
5
inventory_dir=$( realpath ./)
8
6
inventory_path=${inventory_dir} /inventory.yaml
9
7
base_repo=$( realpath ../../)
10
8
spec_path=$( realpath ../)
11
- fixtures_path=$spec_path /fixtures/modules
12
- num=$( ls ${fixtures_path} | wc -l)
13
- if [[ ! " $num " -gt " 8" ]]; then
14
- echo " No fixtures, please run bundle exec rake spec_prep or pdk bundle exec rake spec_prep"
15
- exit 1
16
- fi
9
+ bolt module install
10
+ ln -nfs ../../../ ./.modules/peadm
17
11
# The concurrency is set to 2 to keep CPU usage from skyrocketing during Large and XL deployments
12
+ echo ' Please choose a PE architecture to provision: '
13
+
18
14
select opt in * /
19
15
do
20
16
dir=$( realpath ${opt} )
21
17
name=$( basename $opt )
22
18
cd $dir
23
19
docker-compose up -d --build
24
- # nohup /usr/bin/live_audit.sh /root/bolt_scripts /tmp/backup &
25
- pdk bundle exec bolt plan run peadm::install --concurrency 2 \
20
+ bolt plan run peadm::install --concurrency 2 \
26
21
--inventory $inventory_path \
27
- --modulepath=$fixtures_path \
28
22
--params @${dir} /params.json \
29
23
--targets=$name
30
24
break ;
31
25
done
26
+ # --modulepath=./modules \
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- # bundle install or pdk bundle install
3
- # bundle exec rake spec_prep or pdk bundle exec rake spec_prep
4
2
# must be in the spec/docker directory
3
+ # must have bolt 3.18+ installed
5
4
echo ' Please choose a PE architecture to provision: '
6
5
downloads=$( realpath ./)
7
6
inventory_dir=$( realpath ./)
8
7
inventory_path=${inventory_dir} /inventory.yaml
9
8
base_repo=$( realpath ../../)
10
- spec_path=$( realpath ../)
11
- fixtures_path=$spec_path /fixtures/modules
12
- num=$( ls ${fixtures_path} | wc -l)
13
- if [[ ! " $num " -gt " 8" ]]; then
14
- echo " No fixtures, please run bundle exec rake spec_prep or pdk bundle exec rake spec_prep"
15
- exit 1
16
- fi
9
+ bolt module install
10
+ # bolt will clobber the .modules directory so a new link is required
11
+ ln -nfs ../../../ ./.modules/peadm
17
12
# The concurrency is set to 2 to keep CPU usage from skyrocketing during Large and XL deployments
18
13
select opt in * /
19
14
do
22
17
cd $dir
23
18
docker-compose up -d --build
24
19
# nohup /usr/bin/live_audit.sh /root/bolt_scripts /tmp/backup &
25
- pdk bundle exec bolt plan run peadm::upgrade --concurrency 2 \
20
+ bolt plan run peadm::upgrade --concurrency 2 \
26
21
--inventory $inventory_path \
27
- --modulepath=$fixtures_path \
28
22
--params @${dir} /upgrade_params.json \
29
23
--targets=$name
30
24
break ;
You can’t perform that action at this time.
0 commit comments