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
46 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
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
3 changes: 0 additions & 3 deletions roles/debian/ldap_server/meta/main.yml

This file was deleted.

13 changes: 13 additions & 0 deletions roles/debian/ldap_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@
purge: true
when: ldap_server.slapd.purge

- name: Set up Python packages.
ansible.builtin.include_role:
name: debian/python_common
vars:
python_common:
remove_packages:
- python-pip
- python3-yaml
- python-botocore
- python-urllib3
install_packages:
- python3-pip

- name: Ensure LDAP and python-ldap and dependencies are installed.
ansible.builtin.apt:
pkg: ["slapd", "ldapscripts", "libldap2-dev"]
Expand Down
3 changes: 0 additions & 3 deletions roles/debian/mysql_client/meta/main.yml

This file was deleted.

13 changes: 13 additions & 0 deletions roles/debian/mysql_client/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@
update_cache: true
cache_valid_time: 240

- name: Set up Python packages.
ansible.builtin.include_role:
name: debian/python_common
vars:
python_common:
remove_packages:
- python-pip
- python3-yaml
- python-botocore
- python-urllib3
install_packages:
- python3-pip

- name: Ensure PyMySQL is installed with pip3.
ansible.builtin.pip:
name: pymysql
Expand Down
3 changes: 0 additions & 3 deletions roles/debian/nginx/meta/main.yml

This file was deleted.

13 changes: 13 additions & 0 deletions roles/debian/nginx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@
update_cache: true
cache_valid_time: 240

- name: Set up Python packages.
ansible.builtin.include_role:
name: debian/python_common
vars:
python_common:
remove_packages:
- python-pip
- python3-yaml
- python-botocore
- python-urllib3
install_packages:
- python3-pip

- name: Ensure passlib is installed with pip3.
ansible.builtin.pip:
name: passlib
Expand Down
1 change: 0 additions & 1 deletion roles/debian/python_common/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ python_common:
install_packages:
- python3-distutils
- python3-venv
- python3-pip
- cloud-init # package can get removed with python3-yaml but we need it for auto-scale
11 changes: 10 additions & 1 deletion scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ TARGET_PROVISION_BRANCH=""
ANSIBLE_EXTRA_VARS=""
ANSIBLE_DEFAULT_EXTRA_VARS=""
ANSIBLE_PATH=""
PYTHON_INTERPRETER=""
BUILD_WORKSPACE=""
BUILD_WORKSPACE_BASE="$OWN_DIR/build"
BUILD_ID=""
Expand Down Expand Up @@ -101,6 +102,10 @@ parse_options(){
shift
ANSIBLE_PATH="$1"
;;
"--python-interpreter")
shift
PYTHON_INTERPRETER="$1"
;;
*)
usage
exit 1
Expand All @@ -123,7 +128,11 @@ get_build_workspace(){
# Common extra-vars to pass to Ansible.
get_ansible_defaults_vars(){
get_build_id
ANSIBLE_DEFAULT_EXTRA_VARS="{_ce_provision_base_dir: $OWN_DIR, _ce_provision_build_dir: $BUILD_WORKSPACE, _ce_provision_build_tmp_dir: $BUILD_TMP_DIR, _ce_provision_data_dir: $ANSIBLE_DATA_DIR, _ce_provision_build_id: $BUILD_ID, _ce_provision_force_play: $FORCE_PLAY, target_branch: $TARGET_PROVISION_BRANCH}"
if [ -n "$PYTHON_INTERPRETER" ]; then
ANSIBLE_DEFAULT_EXTRA_VARS="{ansible_python_interpreter: $PYTHON_INTERPRETER, _ce_provision_base_dir: $OWN_DIR, _ce_provision_build_dir: $BUILD_WORKSPACE, _ce_provision_build_tmp_dir: $BUILD_TMP_DIR, _ce_provision_data_dir: $ANSIBLE_DATA_DIR, _ce_provision_build_id: $BUILD_ID, _ce_provision_force_play: $FORCE_PLAY, target_branch: $TARGET_PROVISION_BRANCH}"
else
ANSIBLE_DEFAULT_EXTRA_VARS="{_ce_provision_base_dir: $OWN_DIR, _ce_provision_build_dir: $BUILD_WORKSPACE, _ce_provision_build_tmp_dir: $BUILD_TMP_DIR, _ce_provision_data_dir: $ANSIBLE_DATA_DIR, _ce_provision_build_id: $BUILD_ID, _ce_provision_force_play: $FORCE_PLAY, target_branch: $TARGET_PROVISION_BRANCH}"
fi
}

# Clone our target repo.
Expand Down
1 change: 1 addition & 0 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ usage(){
echo 'Available options:'
echo '--ansible-extra-vars: Variable to pass as --extra-vars arguments to ansible-playbook. Make sure to escape them properly.'
echo '--ansible-path: Pass the path to the directory containing the Ansible binaries if you are not using the version of Ansible in PATH.'
echo '--python-interpreter: When using Python virtual environments Ansible may not correctly determine the Python interpreter, use this to set it manually.'
echo '--workspace: Local existing clone of the repo/branch (if your deployment tool already has one). This will skip the cloning/fetching of the repo.'
echo '--user: Linux user executing the script (defaults to controller).'
echo '--absolute-playbook-path: Prevent prepending of the workspace path to the playbook path when Ansible is called.'
Expand Down