Skip to content

Commit

Permalink
fixup! Add information about privileges for service accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszbetka committed Feb 3, 2020
1 parent 51a3258 commit 39f10aa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Scripts in this repository allow you to build containers and cluster configurati
You obviously need access that machine to do this.
This is the recommended way to deploy in production.

## Deployment
## Initializing the deployment environments

### Cloning the repositories

Expand Down Expand Up @@ -404,11 +404,13 @@ ansible-playbook configure-user-authentication-for-clusters.yml \
--user $user
```
All the instructions below assume that you're using local playbooks to run build and deployment commands on a new server.

Note that if you're running the playbooks themselves from within that server too, you need to add `--connection=local` to your `ansible-playbook` calls.
Otherwise Ansible will run its commands over SSH (rather than directly) using the public IP specified in `ansible_inventory`, which will likely fail because you're not supposed to have your private SSH key on the remote server you're connecting to.

## Deployment

All the instructions below assume that you're using local playbooks to run build and deployment commands on a new server.
### Building containers and cluster configuration
Before following these instructions, please make sure that the Concent version you're building (i.e. `concent_version` in `containers/versions.yml`) is listed in `concent_versions` dictionary in `var-concent-<cluster>.yml` file.
At any given time there can be multiple Concent versions deployed to different clusters within the same environment (e.g. `v1.8` and `v1.9` on `dev`, `v1.9` and `v2.0` on `staging`, etc.) and this dictionary contains configuration values that are not the same for all those clusters.
Expand All @@ -424,7 +426,7 @@ ansible-playbook build-cluster-configuration.yml \
--extra-vars cluster=$cluster \
--inventory ../../concent-deployment-values/ansible_inventory \
--user $user
```
ansible-playbook build-test-and-push-containers.yml \
--extra-vars cluster=$cluster \
--inventory ../../concent-deployment-values/ansible_inventory \
Expand Down

0 comments on commit 39f10aa

Please sign in to comment.