Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
90aeb2c
Improving AWS subnet docs.
gregharvey Nov 22, 2023
c277047
Merge branch '2.x' into bug_fixes_2.x
gregharvey Nov 30, 2023
97570e3
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 12, 2023
7c31b40
Error in timers structure in the SSL role.
gregharvey Dec 12, 2023
44a4d87
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 12, 2023
fd6c81b
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 12, 2023
8a5acaa
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 21, 2023
b75fe03
Removing obsolete backports requirements.
gregharvey Dec 21, 2023
c57b886
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
b270172
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
5b27a8c
Allow the billing role to access Sustainability information.
gregharvey Dec 21, 2023
053097b
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
23bec8f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
883e323
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 21, 2023
dff1847
Merge branch '2.x' into bug_fixes_2.x
gregharvey Dec 21, 2023
9ca4148
Missing comma in IAM billing policy.
gregharvey Dec 21, 2023
1e07a78
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
fa8c5dc
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Dec 21, 2023
d753fad
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 9, 2024
c8199be
Removing broken GitLab Runner code.
gregharvey Jan 9, 2024
e1b01a8
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 9, 2024
c222fec
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 9, 2024
0ba4138
Fixed the include_role task in gitlab_runner.
gregharvey Jan 10, 2024
aacf70b
Suppressing a failure if there is no system pip to call.
gregharvey Jan 10, 2024
8b20f84
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
6357281
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
c634ef5
Logic error in Ansible installer username, needs to be set from calli…
gregharvey Jan 10, 2024
7e5fb2b
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
2673659
ansible_user is a reserved variable, seems to be causing issues.
gregharvey Jan 10, 2024
3dbd017
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
c6af4c0
_ansible_ANYTHING is reserved, using _install_username instead.
gregharvey Jan 10, 2024
2c487c2
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
b302676
python_boto role also needs the username set in the calling role.
gregharvey Jan 10, 2024
2fe29a1
Updating python_boto docs.
gregharvey Jan 10, 2024
b56f6a2
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
443534d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 10, 2024
32f3ced
Making profile.d loading more robust.
gregharvey Jan 11, 2024
1f8d80e
Also pip removing ansible-core and trying with pip and pip3 to cover …
gregharvey Jan 11, 2024
ff2803f
Updating bad AWS SG role var namespacing in other roles.
gregharvey Jan 11, 2024
edf2185
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
d57d760
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
0966398
Refactoring how we handle python3-pip.
gregharvey Jan 11, 2024
45814bd
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
bf05609
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 11, 2024
6b2b69b
Allow passing in of the Python interpreter to Ansible.
gregharvey Jan 12, 2024
ff82392
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 12, 2024
3c1d06c
Updating the packages server for CE.
gregharvey Jan 15, 2024
f9d55ad
Merging 2.x.
gregharvey Jan 15, 2024
c765a4b
Merging devel.
gregharvey Jan 15, 2024
d6a819e
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 15, 2024
2b422a9
Installing Ansible in a venv on all machines.
gregharvey Jan 16, 2024
54585fc
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 16, 2024
33abf0a
Changing common_base format for readability.
gregharvey Jan 16, 2024
a3ef3e9
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 16, 2024
394ec01
No need to specify Python to the point release.
gregharvey Jan 17, 2024
d44cda2
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 17, 2024
3697d1c
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 17, 2024
122e4a8
Merging 2.x.
gregharvey Jan 17, 2024
f906530
Docs update.
gregharvey Jan 17, 2024
1657971
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 17, 2024
54602bc
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 18, 2024
a621f1c
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
e1ab6e7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
7c43ab0
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 18, 2024
9167265
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
b0c5c34
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 18, 2024
9b63954
Fixing LDAP SSL to use systemd timer.
gregharvey Jan 18, 2024
516f61d
Allowing different systemd timer names for different Ansible installs.
gregharvey Jan 18, 2024
2f9363a
Merge branch 'bug_fixes_2.x-PR-2.x' of github.com:codeenigma/ce-provi…
gregharvey Jan 18, 2024
17f7804
Fixing dynamic key name in ansible role.
gregharvey Jan 19, 2024
75d9919
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 19, 2024
3f9f67e
Trying to debug missing timer_command var.
gregharvey Jan 19, 2024
e34d247
Treating the timer string so it becomes a dict.
gregharvey Jan 19, 2024
2d0d5e7
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 19, 2024
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
1 change: 1 addition & 0 deletions docs/roles/debian/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ce_ansible:
enabled: true # create systemd timer to auto-upgrade Ansible
command: "{{ _venv_path }}/bin/python3 -m pip install --upgrade ansible" # if you set venv_path above then set it here too
on_calendar: "*-*-* 01:30:00" # see systemd.time documentation - https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html#Calendar%20Events
#timer_name: upgrade_ansible
linters:
enabled: true # will not install linters if false, installing linters breaks cloud-init

Expand Down
1 change: 1 addition & 0 deletions docs/roles/debian/ce_deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ce_deploy:
venv_path: "/home/{{ _ce_deploy.username }}/ansible"
venv_command: /usr/bin/python3 -m venv
install_username: "{{ _ce_deploy.username }}"
upgrade_timer_name: upgrade_ce_deploy_ansible
# Other ce-deploy settings.
new_user: true # set to false if user already exists or is ephemeral, e.g. an LDAP user
key_name: id_rsa.pub # existing users may have a key of a different name
Expand Down
1 change: 1 addition & 0 deletions docs/roles/debian/ce_provision.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ce_provision:
venv_path: "/home/{{ _ce_provision.username }}/ansible"
venv_command: /usr/bin/python3 -m venv
install_username: "{{ _ce_provision.username }}"
upgrade_timer_name: upgrade_ce_provision_ansible
# Other ce-provision settings.
username: "{{ _ce_provision.username }}"
new_user: true # set to false if user already exists or is ephemeral, e.g. an LDAP user
Expand Down
1 change: 1 addition & 0 deletions docs/roles/debian/ldap_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ ldap_server:
# reload_command: restart
# reload:
# - slapd
# on_calendar: "Mon *-*-* 04:00:00"
replication:
host: "" # host must be present in config/hosts for ce-provision, leave empty if no replication is desired
port: "636"
Expand Down
1 change: 1 addition & 0 deletions roles/_meta/common_base/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ dependencies:
enabled: true
command: "/home/{{ ce_provision.username }}/ansible/bin/python3 -m pip install --upgrade ansible"
on_calendar: "*-*-* 01:30:00"
timer_name: upgrade_ansible
linters:
enabled: false
1 change: 1 addition & 0 deletions roles/debian/ansible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ce_ansible:
enabled: true # create systemd timer to auto-upgrade Ansible
command: "{{ _venv_path }}/bin/python3 -m pip install --upgrade ansible" # if you set venv_path above then set it here too
on_calendar: "*-*-* 01:30:00" # see systemd.time documentation - https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html#Calendar%20Events
#timer_name: upgrade_ansible
linters:
enabled: true # will not install linters if false, installing linters breaks cloud-init

Expand Down
1 change: 1 addition & 0 deletions roles/debian/ansible/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ ce_ansible:
enabled: true # create systemd timer to auto-upgrade Ansible
command: "{{ _venv_path }}/bin/python3 -m pip install --upgrade ansible" # if you set venv_path above then set it here too
on_calendar: "*-*-* 01:30:00" # see systemd.time documentation - https://www.freedesktop.org/software/systemd/man/latest/systemd.time.html#Calendar%20Events
#timer_name: upgrade_ansible
linters:
enabled: true # will not install linters if false, installing linters breaks cloud-init
13 changes: 9 additions & 4 deletions roles/debian/ansible/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,17 @@
content: "export PATH=$PATH:{{ ce_ansible.venv_path | default(_venv_path) }}/bin"
dest: "/etc/profile.d/ansible-path.sh"

- name: Build systemd timer variables string.
ansible.builtin.set_fact:
_timer: "{'{{ ce_ansible.upgrade.timer_name | default(_ce_ansible_timer_name) }}': { timer_command: '{{ ce_ansible.upgrade.command }}', timer_OnCalendar: '{{ ce_ansible.upgrade.on_calendar }}' }}"

- name: Turn the timer string into a dictionary.
ansible.builtin.set_fact:
_timer: "{{ _timer.splitlines()|map('from_yaml')|list }}"

- name: Create systemd timer to upgrade Ansible.
ansible.builtin.include_role:
name: contrib/systemd_timers
vars:
timers:
upgrade_ansible:
timer_command: "{{ ce_ansible.upgrade.command }}"
timer_OnCalendar: "{{ ce_ansible.upgrade.on_calendar }}"
timers: "{{ _timer }}"
when: ce_ansible.upgrade.enabled
1 change: 1 addition & 0 deletions roles/debian/ce_deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ce_deploy:
venv_path: "/home/{{ _ce_deploy.username }}/ansible"
venv_command: /usr/bin/python3 -m venv
install_username: "{{ _ce_deploy.username }}"
upgrade_timer_name: upgrade_ce_deploy_ansible
# Other ce-deploy settings.
new_user: true # set to false if user already exists or is ephemeral, e.g. an LDAP user
key_name: id_rsa.pub # existing users may have a key of a different name
Expand Down
1 change: 1 addition & 0 deletions roles/debian/ce_deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ce_deploy:
venv_path: "/home/{{ _ce_deploy.username }}/ansible"
venv_command: /usr/bin/python3 -m venv
install_username: "{{ _ce_deploy.username }}"
upgrade_timer_name: upgrade_ce_deploy_ansible
# Other ce-deploy settings.
new_user: true # set to false if user already exists or is ephemeral, e.g. an LDAP user
key_name: id_rsa.pub # existing users may have a key of a different name
Expand Down
1 change: 1 addition & 0 deletions roles/debian/ce_deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
_venv_path: "{{ ce_deploy.venv_path }}"
_venv_command: "{{ ce_deploy.venv_command }}"
_install_username: "{{ ce_deploy.install_username }}"
_ce_ansible_timer_name: "{{ ce_deploy.upgrade_timer_name }}"

- name: Install Ansible.
ansible.builtin.include_role:
Expand Down
1 change: 1 addition & 0 deletions roles/debian/ce_provision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ce_provision:
venv_path: "/home/{{ _ce_provision.username }}/ansible"
venv_command: /usr/bin/python3 -m venv
install_username: "{{ _ce_provision.username }}"
upgrade_timer_name: upgrade_ce_provision_ansible
# Other ce-provision settings.
username: "{{ _ce_provision.username }}"
new_user: true # set to false if user already exists or is ephemeral, e.g. an LDAP user
Expand Down
1 change: 1 addition & 0 deletions roles/debian/ce_provision/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ce_provision:
venv_path: "/home/{{ _ce_provision.username }}/ansible"
venv_command: /usr/bin/python3 -m venv
install_username: "{{ _ce_provision.username }}"
upgrade_timer_name: upgrade_ce_provision_ansible
# Other ce-provision settings.
username: "{{ _ce_provision.username }}"
new_user: true # set to false if user already exists or is ephemeral, e.g. an LDAP user
Expand Down
1 change: 1 addition & 0 deletions roles/debian/ce_provision/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
_venv_path: "{{ ce_provision.venv_path }}"
_venv_command: "{{ ce_provision.venv_command }}"
_install_username: "{{ ce_provision.install_username }}"
_ce_ansible_timer_name: "{{ ce_provision.upgrade_timer_name }}"

- name: Install Ansible.
ansible.builtin.include_role:
Expand Down
1 change: 1 addition & 0 deletions roles/debian/ldap_server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ ldap_server:
# reload_command: restart
# reload:
# - slapd
# on_calendar: "Mon *-*-* 04:00:00"
replication:
host: "" # host must be present in config/hosts for ce-provision, leave empty if no replication is desired
port: "636"
Expand Down
1 change: 1 addition & 0 deletions roles/debian/ldap_server/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ldap_server:
# reload_command: restart
# reload:
# - slapd
# on_calendar: "Mon *-*-* 04:00:00"
replication:
host: "" # host must be present in config/hosts for ce-provision, leave empty if no replication is desired
port: "636"
Expand Down