Skip to content

Commit

Permalink
Added a playbook to lock and expire the bootstrap user on all nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Liang committed Dec 7, 2023
1 parent 4067f82 commit 363a7f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cluster-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ compute node as part of a subsequent playbook.)

From here, you can lock and expire the `ubuntu` user and start using one of the just-imported accounts,
if you have one. Make sure that your uploaded `cluster-setup` directory is accessible by
the account you're using if you do so.
the account you're using if you do so. The `lock_bootstrap_user.yaml` playbook can do this;
modify the `user_name` variable if necessary.

### Get SSL credentials for the webserver

Expand Down
6 changes: 3 additions & 3 deletions cluster-setup/deployment/inventory_octomore.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ localhost
# b04
b05
# b06
# b07a
b07a
# b07b
# b08a
# b08b
b08a
b08b
12 changes: 12 additions & 0 deletions cluster-setup/deployment/lock_bootstrap_user.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

- name: lock and expire the bootstrap user
hosts: all
vars:
user_name: ubuntu
tasks:
- name: lock and expire the user
user:
name: "{{ user_name }}"
password_lock: true
expires: 1

0 comments on commit 363a7f5

Please sign in to comment.