Skip to content

Commit ad99aee

Browse files
author
lerndevops
authored
Update readme.md
1 parent 22bb111 commit ad99aee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cicd-flow/readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,26 @@
4646
4747
echo -e 'jenkins ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/jenkins
4848

49-
### Step7 -- `configure ssh keys for ansible user & Setup target Environments`
49+
### Step7 -- `Setup target Environments & configure ssh keys for ansible user`
5050

51-
> since we are going to use the same jenkins machine as ansible controller, create user & configure the ssh keys.
52-
5351
> setup two docker swarm clusters one for QA & one for PROD
5452
```
55-
create two VMs for QA & create docker swarm cluster one manager & one node
56-
create two VMs for PROD & create docker swarm cluster one manager & one node
53+
create two VMs for QA, Install Docker on both & create docker swarm cluster, one manager - one node
54+
create two VMs for PROD, Install Docker on both & create docker swarm cluster, one manager - one node
5755
```
56+
> since we are going to use the same jenkins machine as ansible controller, create user ansible & configure the ssh keys.
57+
5858
> Copy the ssh-keys for ansible user from Jenkins machine (acting as ansible controller) to QA Swarm Manager & PROD Swarm Manager so that Jenkins can connect & deploy the containers.
5959
6060
[SSH-KEYS-SETUP](https://github.com/lerndevops/labs/blob/master/ansible/install/ssh-keys-setup.md)
6161

62-
### Step8 -- `Setup Ansible Inventory`
62+
### Step8 -- `Setup Ansible Inventory on Jenkins machine`
6363

6464
```
6565
vi /tmp/inv
6666
enter your servers in gruops called qa & prod
6767
( look at the sample inventory file under https://github.com/lerndevops/samplejavaapp/tree/master/deploy )
68-
ensure to update the qa & prod server credentials accrodingly in /tmp/inv file
68+
ensure to put only manager IPs in inventory file -- DO NOT PUT NODE IPs
6969
```
7070

7171
### Step9 -- `Login to Jenkins UI`

0 commit comments

Comments
 (0)