Jacob Molnia commited on
Commit
c9afb89
1 Parent(s): 4394adb

intermidate setup

Browse files
.gitignore ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ignore the entire keys directory
2
+ /keys/
3
+
4
+ # Ignore the .secrets directory
5
+ /deployment/.secrets/
6
+
7
+ # Ignore Mac system files
8
+ .DS_Store
9
+ .AppleDouble
10
+ .LSOverride
11
+
12
+ # Ignore Icon must end with two \r
13
+ Icon
14
+
15
+ # Ignore Thumbnails
16
+ ._*
17
+
18
+ # Ignore Files that might appear in the root of a volume
19
+ .DocumentRevisions-V100
20
+ .fseventsd
21
+ .Spotlight-V100
22
+ .TemporaryItems
23
+ .Trashes
24
+ .VolumeIcon.icns
25
+ .com.apple.timemachine.donotpresent
26
+
27
+ # Ignore Directories potentially created on remote AFP share
28
+ .AppleDB
29
+ .AppleDesktop
30
+ Network Trash Folder
31
+ Temporary Items
32
+ .apdisk
33
+
34
+ # Ignore Python bytecode files
35
+ __pycache__/
36
+ *.py[cod]
37
+
38
+ # Ignore virtual environment
39
+ venv/
40
+ *.venv
41
+ env/
42
+ *.env
43
+
44
+ # Ignore IDE specific files
45
+ .vscode/
46
+ .idea/
47
+ *.swp
48
+ *.swo
49
+
50
+ # Ignore log files
51
+ *.log
deployment/01_deploy_to_app/ansible.cfg CHANGED
@@ -1,5 +1,4 @@
1
  [defaults]
2
  inventory = inventory/hosts.ini
3
  remote_user = student-admin
4
- private_key_file = ~/.ssh/keys/id_admin_cs553
5
 
 
1
  [defaults]
2
  inventory = inventory/hosts.ini
3
  remote_user = student-admin
 
4
 
deployment/01_deploy_to_app/inventory/hosts.ini CHANGED
@@ -1,3 +1,3 @@
1
  [classserver]
2
- server1 ansible_host=paffenroth-23.dyn.wpi.edu ansible_port=22018
3
- #server1Tailscail ansible_host=group18
 
1
  [classserver]
2
+ #server1 ansible_host=paffenroth-23.dyn.wpi.edu ansible_port=22018
3
+ server1Tailscail ansible_host=group18
deployment/02_deploy_to_controller/playbooks/main.yml CHANGED
@@ -95,6 +95,14 @@
95
  recurse: yes
96
  become: yes
97
 
 
 
 
 
 
 
 
 
98
  - name: Ensure .ssh directory exists
99
  file:
100
  path: /home/ubuntu/.ssh
 
95
  recurse: yes
96
  become: yes
97
 
98
+ - name: Ensure correct permissions on student-admin key
99
+ file:
100
+ path: /opt/CS_553/keys/student-admin-key
101
+ mode: '0600'
102
+ owner: ubuntu
103
+ group: ubuntu
104
+ become: yes
105
+
106
  - name: Ensure .ssh directory exists
107
  file:
108
  path: /home/ubuntu/.ssh