Skip to content

Commit 8be0a94

Browse files
Merge pull request #197 from puppetlabs/SOLARCH-464
(SOLARCH-464) updating provision to install and documentation on resource defaults
2 parents d3ca355 + 6edb252 commit 8be0a94

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

Diff for: documentation/docker_examples.md

+15-8
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,22 @@ To run the container based examples you will need the following requirements:
1515
3. realpath (brew install coreutils on mac)
1616
4. 16GB memory, 24GB+ for XL and XL-DR architectures
1717
5. CPU with many cores (Tested with Core i7 6700)
18+
6. If using docker desktop ensure resources are set (the default of 2GB ram and 1GB swap on mac are inadequate)
19+
- As a reference, we tested with the below settings:
20+
- Resources -> Advanced
21+
- CPUs: 6
22+
- Memory: 16 GB
23+
- Swap: 2 GB
24+
![docker_resources](images/docker_resources.png)
1825

1926
### Starting the example
20-
We have provided a provision.sh script to help making these examples simple.
27+
We have provided a install.sh script to help making these examples simple.
2128
To use perform the following:
2229

2330
1. cd spec/docker
24-
2. bash provision.sh
31+
2. bash install.sh
2532
3. select desired architecture when prompted (ie. extra-large-ha )
26-
4. Wait 10-20 minutes for provisioning to complete
33+
4. Wait 10-20 minutes for installing to complete
2734

2835
```
2936
Please choose a PE architecture to build:
@@ -40,7 +47,7 @@ In order to stop and remove the containers you will need to perform the followin
4047
3. docker-compose down
4148

4249
### Logging into the console
43-
You can login to the PE Console after successful provision. However, first you will need to
50+
You can login to the PE Console after successful install. However, first you will need to
4451
grab the mapped port number of the PE console. The port numbers are mapped dynamically as to not
4552
cause port conflicts on your system. To see how the ports are mapped you can view them via:
4653

@@ -68,7 +75,7 @@ You can also bypass ssh and run docker exec or docker-compose exec
6875
This will run an interactive bash shell in the running container.
6976
7077
### Upgrades
71-
There is also a upgrade.sh script that is similar to the provision.sh script. This script will upgrade an already provisioned PE stack to the version specified in the update_params.json file.
78+
There is also a upgrade.sh script that is similar to the install.sh script. This script will upgrade an already installed PE stack to the version specified in the update_params.json file.
7279
7380
## Attaching agent containers
7481
Because we are using containers we can start up numerous container instances and attach them all to the same PE stack. In a matter of minutes you can easily attach hunders of new nodes to the PE stack (if resources allow). This is very useful for testing out scenarios involving different puppet versions or operating systems and even features like the orchestrator.
@@ -119,10 +126,10 @@ At this time we have not added documention for starting a container with systemd
119126

120127

121128
### Other notes
122-
1. The provision plan is not fully idempotent.
129+
1. The install plan is not fully idempotent.
123130
2. Some tasks may fail when run due to resource constraints.
124-
3. You can rerun the provision.sh script on the same architecture without destroying the containers. This can sometimes complete the provision process successfully.
125-
4. Rerunning the provision script may result in errors due to idempotency issues with tasks and plans.
131+
3. You can rerun the install.sh script on the same architecture without destroying the containers. This can sometimes complete the install process successfully.
132+
4. Rerunning the install script may result in errors due to idempotency issues with tasks and plans.
126133
5. Please remember you are starting the equilivent of 3-6 VMs on a single system.
127134
6. You can use top to view all the processes being run in the containers.
128135
7. Docker will use the privilege mode option when running these examples (systemd support)

Diff for: documentation/images/docker_resources.png

73.7 KB
Loading

Diff for: spec/docker/provision.sh renamed to spec/docker/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ do
2222
cd $dir
2323
docker-compose up -d --build
2424
# nohup /usr/bin/live_audit.sh /root/bolt_scripts /tmp/backup &
25-
pdk bundle exec bolt plan run peadm::provision --concurrency 2 \
25+
pdk bundle exec bolt plan run peadm::install --concurrency 2 \
2626
--inventory $inventory_path \
2727
--modulepath=$fixtures_path \
2828
--params @${dir}/params.json \

0 commit comments

Comments
 (0)