File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 11
11
description : ' Instance name suffix'
12
12
required : false
13
13
default : ' '
14
- sshAuthorizedKey :
15
- description : ' SSH authorized public key'
16
- required : false
17
- default : ' '
18
14
19
15
jobs :
20
16
create-instance :
54
50
S3_SECRET_ACCESS_KEY : ${{ secrets.S3_SECRET_ACCESS_KEY}}
55
51
56
52
MODEL : ${{ inputs.model }}
57
- SSH_AUTHORIZED_KEY : ${{ inputs.sshAuthorizedKey }}
58
53
INSTANCE_NAME_SUFFIX : ${{ inputs.instanceNameSuffix }}
Original file line number Diff line number Diff line change @@ -54,8 +54,6 @@ def indentString(input_string, indent_level=4):
54
54
model = os .getenv ("MODEL" , "" )
55
55
users = os .getenv ("USERS" , "" )
56
56
57
- ssh_authorized_keys = os .getenv ("SSH_AUTHORIZED_KEY" )
58
-
59
57
if users :
60
58
users = f"""
61
59
users:
@@ -72,20 +70,13 @@ def indentString(input_string, indent_level=4):
72
70
user ['groups' ].append (user ['primary_group' ])
73
71
if 'docker' not in user ['groups' ]:
74
72
user ['groups' ].append ('docker' )
75
- if 'sudo' not in user ['groups' ]:
76
- user ['groups' ].append ('sudo' )
77
- if ssh_authorized_keys :
78
- user ['ssh_authorized_keys' ] = [
79
- ssh_authorized_keys
80
- ]
81
73
users = yaml .dump (parsedUsers )
82
74
83
75
84
76
85
77
f = open ("docker-compose.yaml" , "r" )
86
78
dockerCompose = indentString (f .read (), 8 )
87
79
88
-
89
80
userData = f"""
90
81
#cloud-config
91
82
You can’t perform that action at this time.
0 commit comments