Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous deployment Python script #80

Merged
merged 47 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
3cf0da1
initial commit
mira-miracoli Nov 28, 2023
57f0871
dry run working
mira-miracoli Nov 28, 2023
7f612a5
update gitignore
mira-miracoli Dec 1, 2023
fb4fd86
dependency handling
mira-miracoli Dec 13, 2023
6918ad8
use conda command directly, remove wrapper
mira-miracoli Dec 13, 2023
4686df8
add publish method
mira-miracoli Dec 14, 2023
ef590cd
auth error handling
mira-miracoli Dec 14, 2023
9199d44
use subprocess
mira-miracoli Dec 14, 2023
a64c3b6
mostly documentation
mira-miracoli Dec 15, 2023
6d344b8
use sys.exit instead of exception
mira-miracoli Dec 15, 2023
8cfaaa9
add conda env file
mira-miracoli Dec 15, 2023
04f2a40
add openstack to env file
mira-miracoli Dec 15, 2023
39c1d1b
allow build.py to set ansible extra vars
mira-miracoli Dec 15, 2023
78843e2
no fail if vault password is missing
mira-miracoli Dec 15, 2023
ad8085e
nl
mira-miracoli Dec 15, 2023
dd6b84f
better binary path management
mira-miracoli Dec 15, 2023
b437945
sort imports
mira-miracoli Dec 19, 2023
4fc5aa6
use black, use fstrings, remove unnecessary function
mira-miracoli Dec 19, 2023
d1d6b46
comment
mira-miracoli Dec 19, 2023
d953c66
remove unnecessary linebreaks
mira-miracoli Dec 19, 2023
b898deb
Update .gitignore
mira-miracoli Dec 19, 2023
2d3a60c
make parser as function
mira-miracoli Dec 19, 2023
d6107de
add license to spinner class
mira-miracoli Dec 19, 2023
3c5ce69
remove unnecessary linebreaks
mira-miracoli Dec 19, 2023
2227162
remove unnecessary linebreaks
mira-miracoli Dec 19, 2023
6b97b23
Update doc
mira-miracoli Dec 19, 2023
1616455
no append
mira-miracoli Dec 19, 2023
07cd13a
remove choices
mira-miracoli Dec 19, 2023
c071715
wrap argparse in function
mira-miracoli Dec 19, 2023
1cedd6d
pathlib.path constants
mira-miracoli Dec 19, 2023
39be50e
remove anaconda from docs
mira-miracoli Dec 19, 2023
45468b4
pathlib objects look better
mira-miracoli Dec 19, 2023
0392ffc
another simple path join
mira-miracoli Dec 19, 2023
505ef7c
and one more
mira-miracoli Dec 19, 2023
36f041c
that should be a variable
mira-miracoli Dec 19, 2023
9c8c903
fix order
mira-miracoli Dec 19, 2023
60ee6d6
more paths to join
mira-miracoli Dec 19, 2023
3b6a4b0
use pathlib join
mira-miracoli Dec 19, 2023
8b363fa
copy list
mira-miracoli Dec 19, 2023
1f153c5
add architecture
mira-miracoli Dec 19, 2023
e1c6d93
reorder assemble name
mira-miracoli Dec 19, 2023
ef2e646
use pathlibs exist method
mira-miracoli Dec 19, 2023
56b9e2f
Compute commit time in `assemble_timestamp`
kysrpex Dec 20, 2023
72db2e4
Workaround for including double quotes in `PKR_VAR_groups` env variable
kysrpex Dec 20, 2023
522cd03
special var is called group_names
mira-miracoli Dec 21, 2023
c54ea61
not hostname but internal
mira-miracoli Dec 21, 2023
9975044
and the quotes
mira-miracoli Dec 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
qemu/
virtualbox-iso/
vmware-iso/

packer_plugins/
ansible/collections
ansible/roles/galaxyproject*
ansible/roles/geerlingguy*
ansible/roles/influxdata*
ansible/roles/usegalaxy-eu.a*
ansible/roles/usegalaxy_eu.*
ansible/roles/usegalaxy-eu.c*
ansible/roles/usegalaxy-eu.d*
ansible/roles/usegalaxy-eu.f*
ansible/roles/usegalaxy-eu.t*
mira-miracoli marked this conversation as resolved.
Show resolved Hide resolved
# Created by https://www.gitignore.io/api/packer

### Packer ###
Expand Down
11 changes: 7 additions & 4 deletions ansible/internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@
vars_files:
- "group_vars/all.yml"
- "group_vars/condor.yml"
- "secret_group_vars/internal.yml"
pre_tasks:
- name: Include secret vars
ansible.builtin.include_vars: "secret_group_vars/internal.yml"
when: inventory_hostname in group.internal
- name: Copy server key into VM temporarily
mira-miracoli marked this conversation as resolved.
Show resolved Hide resolved
copy:
ansible.builtin.copy:
src: server_ca
dest: /tmp/server_ca
owner: root
group: root
mode: 0600
mode: "0600"
- name: Add HostCertificate options
lineinfile:
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: "^HostKey /etc/ssh/ssh_host_{{ item }}_key"
line: "HostKey /etc/ssh/ssh_host_{{ item }}_key\nHostCertificate /etc/ssh/ssh_host_{{ item }}_key-cert.pub"
Expand All @@ -29,6 +31,7 @@
limit_type: hard
limit_item: core
value: 0

roles:
- usegalaxy_eu.htcondor
- lock-root
Expand Down
Loading