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
59 commits
Select commit Hold shift + click to select a range
17115af
Fixing installer variable bug.
gregharvey Sep 10, 2025
176df44
Fixing tests for external PRs.
gregharvey Sep 10, 2025
2484532
Testing with a fork.
gregharvey Sep 10, 2025
cde9a60
Adding repo owner's username into installer string.
gregharvey Sep 10, 2025
a2c4bac
Refactoring config repo detection to simplify.
gregharvey Sep 10, 2025
7ce204b
No longer permitted to use an integer as a truthy value.
gregharvey Sep 10, 2025
c7ae003
No longer permitted to use existence check as a truthy value.
gregharvey Sep 10, 2025
6379b2e
Can't see a reason why linotp var shouldn't be a boolean.
gregharvey Sep 10, 2025
318f532
No longer permitted to use existence check as a truthy value.
gregharvey Sep 10, 2025
1466d24
Fixing truthy errors in ce_deploy role.
gregharvey Sep 10, 2025
3c14dfa
No longer permitted to use an integer as a truthy value.
gregharvey Sep 10, 2025
132c5fd
Merge branch '2.x' into bug_fixes
gregharvey Sep 16, 2025
a74b945
Merge branch '2.x' into bug_fixes
gregharvey Sep 22, 2025
9472416
Updating clamav command to use flock avoiding duplicate processes run…
gregharvey Sep 22, 2025
b665759
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 22, 2025
53ce70b
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 22, 2025
a5dc134
Merge branch '2.x' into bug_fixes
gregharvey Sep 24, 2025
c75b16a
More truthy length fixes.
gregharvey Sep 24, 2025
f16c8a6
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 24, 2025
f8b6074
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 24, 2025
8d45293
Merge branch '2.x' into bug_fixes
gregharvey Sep 25, 2025
725fcf7
Fixing more LDAP role truthy issues.
gregharvey Sep 25, 2025
d9c7915
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 25, 2025
450be08
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 25, 2025
612c3c5
Slight block refactor for LDAP.
gregharvey Sep 25, 2025
19efd7b
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 25, 2025
91ad6ca
DN length check should not be negated.
gregharvey Sep 25, 2025
af19175
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 25, 2025
a60f424
Forgot to add the length filter.
gregharvey Sep 25, 2025
a1ba176
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 25, 2025
2b98f9f
Another boolean Ansible 12 error in AMI role.
gregharvey Sep 30, 2025
c655fec
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
52b3ce1
ALB port must be cast as a string for RedirectAction.
gregharvey Sep 30, 2025
fba946b
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
318dd42
Setting the correct Jinja filter, it's string, not str.
gregharvey Sep 30, 2025
26f9de3
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
f0026b7
Fixing more Ansible 12 length issues in autoscale role.
gregharvey Sep 30, 2025
2a75703
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Sep 30, 2025
381fd9b
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
1630157
Merge branch '2.x' into bug_fixes
gregharvey Sep 30, 2025
26f1e24
Simplifying ASG role by refactoring into blocks.
gregharvey Sep 30, 2025
2e4278b
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
05f2600
Further simplifying ASG CloudFront block.
gregharvey Sep 30, 2025
543c564
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
32cfd67
Scaling rules refactor needs work.
gregharvey Sep 30, 2025
1dd82c5
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
1d1f820
Scaling policies list needs to be defined in case it is empty and we …
gregharvey Sep 30, 2025
b9f2407
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
540f6d1
Enhancing installer to accept an Ansible version and putting Ansible …
gregharvey Sep 30, 2025
dd40ab9
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
8593d75
Trying a different approach to defaulting the venv username.
gregharvey Sep 30, 2025
799c3cd
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
4448fa6
Removing default() filter from python_pip_packages role.
gregharvey Sep 30, 2025
80fb11a
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
08ea87e
Fixing up the ce_ansible role for Ansible 12.
gregharvey Sep 30, 2025
56623af
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Sep 30, 2025
01623eb
Removing unnecessary from_json filter from CloudFront acc ID lookup.
gregharvey Oct 1, 2025
b61ec25
Merge branch '2.x' of github.com:codeenigma/ce-provision into bug_fix…
gregharvey Oct 1, 2025
d9139ad
Merge branch 'bug_fixes' into bug_fixes-PR-2.x
gregharvey Oct 1, 2025
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
7 changes: 6 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ usage(){
/usr/bin/echo '--hostname: the server hostname to set (default: depends on system or provider)'
/usr/bin/echo '--no-firewall: skip installing iptables with ports 22, 80 and 443 open'
/usr/bin/echo '--gitlab: install GitLab CE on this server (default: no, set to desired GitLab address to install, e.g. gitlab.example.com)'
/usr/bin/echo '--ansible-version: pass an Ansible version string such as <12 for less than version 12 (default: latest)'
/usr/bin/echo '--letsencrypt: try to create an SSL certificate with LetsEncrypt (requires DNS pointing at this server for provided GitLab URL)'
/usr/bin/echo '--aws: enable AWS support'
/usr/bin/echo '--docker: script is running in a Docker container'
Expand Down Expand Up @@ -52,6 +53,10 @@ parse_options(){
shift
GITLAB_URL="$1"
;;
"--ansible-version")
shift
ANSIBLE_VERSION="$1"
;;
"--letsencrypt")
LE_SUPPORT="yes"
;;
Expand Down Expand Up @@ -84,7 +89,7 @@ FIREWALL="true"
AWS_SUPPORT="false"
IS_LOCAL="false"
SERVER_HOSTNAME=$(hostname)
ANSIBLE_VERSION="<12"
ANSIBLE_VERSION=""

# Parse options.
parse_options "$@"
Expand Down
4 changes: 2 additions & 2 deletions roles/_overrides/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
loop_var: override_file
when:
- _overrides.files is defined
- _overrides.files | length
- _overrides.files|length > 0

- name: Generate links overrides.
ansible.builtin.include_tasks: link.yml
Expand All @@ -15,4 +15,4 @@
loop_var: override_link
when:
- _overrides.links is defined
- _overrides.links | length
- _overrides.links|length > 0
2 changes: 1 addition & 1 deletion roles/aws/aws_ami/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ami_base_image_latest: "{{ ami_base_image.images | sort(attribute='creation_date') | last }}"
when:
- ami_base_image.images is defined
- ami_base_image.images
- ami_base_image.images|length > 0

- name: Delete existing image.
ansible.builtin.include_tasks: delete.yml
Expand Down
6 changes: 3 additions & 3 deletions roles/aws/aws_ami/templates/packer.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"owners": ["{{ aws_ami.owner }}"],
"most_recent": true
},
{% if aws_ami.vpc_filter is defined and aws_ami.vpc_filter | length > 0 %}
{% if aws_ami.vpc_filter is defined and aws_ami.vpc_filter|length > 0 %}
"vpc_filter": {
"filters": {
"tag:Name": "{{ aws_ami.vpc_filter }}"
Expand All @@ -53,7 +53,7 @@
"playbook_file": "{{ aws_ami.playbook_file }}",
"inventory_directory": "{{ _ce_provision_base_dir }}/hosts",
"ssh_authorized_key_file": "/home/{{ user_provision.username }}/.ssh/{{ aws_ami.public_key_name }}",
{% if aws_ami.groups is defined and aws_ami.groups | length %}
{% if aws_ami.groups is defined and aws_ami.groups|length > 0 %}
"groups": {{ aws_ami.groups | to_json }},
{% endif %}
"ansible_env_vars":
Expand All @@ -68,7 +68,7 @@
{% if ansible_verbosity >= 1 %}
"-vvvv",
{% endif %}
{% if _aws_ami_extra_vars is defined and _aws_ami_extra_vars | length %}
{% if _aws_ami_extra_vars is defined and _aws_ami_extra_vars|length > 0 %}
"--extra-vars",
"{{ _aws_ami_extra_vars }}",
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- name: Setting previous command output into variable.
ansible.builtin.set_fact:
_acc_id: "{{ _acc_id.stdout | from_json }}"
_acc_id: "{{ _acc_id.stdout }}"

- name: Get CloudFront info.
ansible.builtin.shell: "aws cloudfront get-distribution-config --id {{ _aws_cloudfront_distribution.id }} --output json > /tmp/dist-config.json"
Expand Down
Loading
Loading