Skip to content

Commit 900c001

Browse files
authored
Merge pull request #314 from alan-turing-institute/DSG-APR2019-Deployment
Merge changes from April DSG
2 parents 07fbc43 + 072d256 commit 900c001

37 files changed

Lines changed: 189 additions & 100 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# System files
22
*.DS_Store
33
.idea/
4-
logistic.csv
4+
new_dsg_environment/azure-vms/tests/logistic.csv
55

66
# All secrets folders, no matter how nested
77
secrets/

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-10.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-11.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-12.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-13.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-14.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-15.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-4.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,6 @@ runcmd:
175175
# Make sure that sssd is running
176176
- echo "Restart sssd service"
177177
- service sssd restart
178-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
179-
- echo "Change ownership of /anaconda/"
180-
- chgrp -R plugdev /anaconda/
181-
- chmod -R g=u /anaconda/
182-
- chmod -R go-w /anaconda/
183178
# Set py36 as default environment when launching a new shell
184179
- echo "Add py36 conda environment setup to global bashrc"
185180
- echo "source activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-9.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-TEST.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,12 @@ runcmd:
167167
- cp /Rprofile.site /anaconda/envs/py36/lib/R/etc/Rprofile.site
168168
- cp /Rprofile.site /anaconda/envs/py37/lib/R/etc/Rprofile.site
169169
# Create shared data folder and grant all users access
170+
- echo "Creating shared data folder"
170171
- sudo mkdir /data
171172
- sudo chmod go+rw /data
172173
# Make sure that sssd is running
173174
- echo "Restart sssd service"
174175
- service sssd restart
175-
# Give anaconda directory to plugdev group (which all new users are a part of) and set group permissions equal to user
176-
- echo "Change ownership of /anaconda/"
177-
- chgrp -R plugdev /anaconda/
178-
- chmod -R g=u /anaconda/
179-
- chmod -R go-w /anaconda/
180176
# Set py36 as default environment when launching a new shell
181177
- echo "Add py36 conda environment setup to global bashrc"
182178
- echo "conda activate py36" >> /etc/bash.bashrc

0 commit comments

Comments
 (0)