Skip to content

Commit

Permalink
Missed pushing up provisioning changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeroux committed Oct 28, 2024
1 parent 59ba246 commit cd7d9f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 85 deletions.
4 changes: 2 additions & 2 deletions cloud-init-files/cloud_init_desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ users:
- <admin-user-ssh-public-key>
runcmd:
- ["wget","https://raw.githubusercontent.com/acenet-arc/desktops_in_the_cloud/refs/heads/main/cloud-init-files/passphrase_generator.py"]
- ["wget","https://raw.githubusercontent.com/acenet-arc/desktops_in_the_cloud/refs/heads/main/cloud-init-files/setup_jekyll_and_guest_accounts.py"]
- ["python3","./setup_jekyll_and_guest_accounts.py","1"]
- ["wget","https://raw.githubusercontent.com/acenet-arc/desktops_in_the_cloud/refs/heads/main/cloud-init-files/setup_passwordssh.py.py"]
- ["python3","./setup_passwordssh.py.py","1"]
82 changes: 0 additions & 82 deletions cloud-init-files/setup_jekyll_and_guest_accounts.py

This file was deleted.

3 changes: 2 additions & 1 deletion cloud-init-files/setup_passwordssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def createGuestAccounts(numAccounts,addToSudoer=False):
subprocess.run(["useradd","-s","/bin/bash","-m","-p",
guest_account_passphrase_enc,username])
if addToSudoer:
print(" adding "+username+" to sudo group")
subprocess.run(["usermod","-aG","sudo",username])

def deletGuestAccounts(numAccounts):
Expand Down Expand Up @@ -67,7 +68,7 @@ def main():
if args.delete:
deletGuestAccounts(args.numGuestAccounts)
else:
createGuestAccounts(args.numGuestAccounts,addToSudoer)
createGuestAccounts(args.numGuestAccounts,addToSudoer=addToSudoer)

if __name__=="__main__":
main()

0 comments on commit cd7d9f5

Please sign in to comment.