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

Bug fixes 2.x pr 2.x #1742

Merged
merged 142 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 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
d8b3d89
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 22, 2024
170c782
Moving default log location for clamav.
gregharvey Jan 22, 2024
84c15bf
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 22, 2024
21f882b
Updating ClamAV docs.
gregharvey Jan 22, 2024
48758c1
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 22, 2024
0950374
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 24, 2024
a15256e
Merge branch '2.x' into bug_fixes_2.x
gregharvey Jan 25, 2024
a57c5ff
Grouping systemd timer tasks together.
gregharvey Jan 25, 2024
6d96c0c
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 25, 2024
cc223d2
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jan 25, 2024
b4473ca
Merge branch '2.x' into bug_fixes_2.x
gregharvey Feb 21, 2024
36a52ee
Exposing ce-provision version in build output.
gregharvey Feb 21, 2024
7739831
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 21, 2024
e6217f1
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 21, 2024
a1f51a1
Merge branch '2.x' into bug_fixes_2.x
gregharvey Feb 23, 2024
a02e9e5
Wrong variable in meta role for controller username.
gregharvey Feb 23, 2024
3597b41
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 23, 2024
4b0c62f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Feb 23, 2024
b8c2c72
Merging 2.x.
gregharvey May 13, 2024
bd22857
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 13, 2024
206b36e
Removing any reference to _aws variables in debian role defaults.
gregharvey May 13, 2024
091a1a8
Merging 2.x.
gregharvey May 13, 2024
5bd3a2f
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 13, 2024
a669010
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 14, 2024
8ee9e69
Setting more sane ASG defaults.
gregharvey May 14, 2024
f56da67
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
f143188
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
aff0054
Making ClamAV timers a list so they can be entirely replaced.
gregharvey May 14, 2024
83d721a
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
23a55de
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 14, 2024
cb4f6eb
Spacing fix for linting.
gregharvey May 16, 2024
7103006
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 22, 2024
ad20385
Renaming npm module.
gregharvey May 22, 2024
3285e19
Merging 2.x.
gregharvey May 22, 2024
437fc49
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 22, 2024
6ada751
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 22, 2024
e97ea5d
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 27, 2024
cf6d60c
Removing NGINX installation as part of phpMyAdmin role by default.
gregharvey May 27, 2024
336bd0a
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
3f4a090
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
3de5bf6
Fixing Varnish handler names.
gregharvey May 27, 2024
502d031
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
edcccfb
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
cda4642
Excluding name[casing] rule from linting due to false positives.
gregharvey May 27, 2024
b6550df
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
3a25d9b
Put rule in wrong place!
gregharvey May 27, 2024
31bb61a
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 27, 2024
4fa0f63
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 29, 2024
31b7e90
Removing lock file behaviour from ASGs as it cannot work unless contr…
gregharvey May 29, 2024
34d295d
Capturing lock file limitations in comment.
gregharvey May 29, 2024
afe08e5
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 29, 2024
27cb997
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 29, 2024
792fcca
Merge branch '2.x' into bug_fixes_2.x
gregharvey May 31, 2024
af108d7
Updating documentation for LE.
gregharvey May 31, 2024
b14da19
Using pip to install certbot plugins.
gregharvey May 31, 2024
0620270
Updating README docs.
gregharvey May 31, 2024
acd5c32
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
0dfe16d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
ebda10c
Docs error corrected.
gregharvey May 31, 2024
0fe340e
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
77027e6
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
9acaddc
Working around deprecated SSH algorithms.
gregharvey May 31, 2024
9f756aa
Merge branch '2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
7df612d
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey May 31, 2024
581e2af
Upgrading SSH key type standard for controller and deploy users.
gregharvey Jun 3, 2024
58b53a8
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 3, 2024
f6ed39f
Adding SCP args for legacy mode needed by Packer.
gregharvey Jun 3, 2024
8d7d5cd
Merge branch 'bug_fixes_2.x' into bug_fixes_2.x-PR-2.x
gregharvey Jun 3, 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/aws/aws_ami.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ aws_ami:
ami_name: "example"
owner: "136693071363" # Global AWS account ID of owner, defaults to Debian official
ssh_username: "admin"
public_key_name: id_ecdsa.pub # from Debian 12 (Bookworm) onwards RSA keys, i.e. id_rsa.pub, are deprecated
encrypt_boot: false
# EBS volume options
device_name: /dev/xvda # default for Debian AMIs
Expand Down
4 changes: 3 additions & 1 deletion docs/roles/debian/ce_deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ ce_deploy:
# Other ce-deploy settings.
aws_support: true # installs boto3
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
ssh_key_bits: "521" # recommended to use 4096 for RSA keys, 521 is the maximum for ECDSA keys
ssh_key_type: ecdsa # set to rsa to create an RSA key
public_key_name: id_ecdsa.pub # this might be id_rsa.pub for RSA keys, existing users may have a key of a different name
username: "{{ _ce_deploy.username }}"
own_repository: "https://github.com/codeenigma/ce-deploy.git"
own_repository_branch: "master"
Expand Down
4 changes: 3 additions & 1 deletion docs/roles/debian/ce_provision.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ ce_provision:
new_user: "{{ _init.ce_provision_new_user }}" # see _init defaults, set to false if user already exists or is ephemeral, e.g. an LDAP user
username: "{{ _ce_provision_username }}" # see _init defaults
#uid: "{{ _init.ce_provision_uid }}" # see _init defaults, optionally hardcode the UID for this user
public_key_name: id_rsa.pub # existing users may have a key of a different name
ssh_key_bits: "521" # recommended to use 4096 for RSA keys, 521 is the maximum for ECDSA keys
ssh_key_type: ecdsa # set to rsa to create an RSA key
public_key_name: id_ecdsa.pub # this might be id_rsa.pub for RSA keys, existing users may have a key of a different name
# Main repo.
own_repository: "https://github.com/codeenigma/ce-provision.git"
own_repository_branch: "master"
Expand Down
1 change: 1 addition & 0 deletions roles/aws/aws_ami/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ aws_ami:
ami_name: "example"
owner: "136693071363" # Global AWS account ID of owner, defaults to Debian official
ssh_username: "admin"
public_key_name: id_ecdsa.pub # from Debian 12 (Bookworm) onwards RSA keys, i.e. id_rsa.pub, are deprecated
encrypt_boot: false
# EBS volume options
device_name: /dev/xvda # default for Debian AMIs
Expand Down
1 change: 1 addition & 0 deletions roles/aws/aws_ami/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ aws_ami:
ami_name: "example"
owner: "136693071363" # Global AWS account ID of owner, defaults to Debian official
ssh_username: "admin"
public_key_name: id_ecdsa.pub # from Debian 12 (Bookworm) onwards RSA keys, i.e. id_rsa.pub, are deprecated
encrypt_boot: false
# EBS volume options
device_name: /dev/xvda # default for Debian AMIs
Expand Down
17 changes: 9 additions & 8 deletions roles/aws/aws_ami/templates/packer.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,28 @@
"type": "ansible",
"playbook_file": "{{ aws_ami.playbook_file }}",
"inventory_directory": "{{ _ce_provision_base_dir }}/hosts",
"ssh_authorized_key_file": "/home/{{ user_provision.username }}/.ssh/id_rsa.pub",
"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 %}
"groups": {{ aws_ami.groups | to_json }},
{% endif %}
"ansible_env_vars":
[
"ANSIBLE_FORCE_COLOR=True",
"ALLOW_WORLD_READABLE_TMPFILES=True",
"ANSIBLE_FORCE_COLOR=True",
"ALLOW_WORLD_READABLE_TMPFILES=True",
"ANSIBLE_CONFIG={{ _ce_provision_base_dir }}/ansible.cfg"
],
"extra_arguments":
[
[
"--scp-extra-args", "'-O'",
{% if ansible_verbosity >= 1 %}
"-vvvv",
{% endif %}
{% if _aws_ami_extra_vars is defined and _aws_ami_extra_vars | length %}
"--extra-vars",
"--extra-vars",
"{{ _aws_ami_extra_vars }}",
{% endif %}
"--extra-vars",
"{ _ce_provision_base_dir: {{ _ce_provision_base_dir }}, _ce_provision_build_dir: {{ _ce_provision_build_dir }}, _ce_provision_build_tmp_dir: {{ _ce_provision_build_tmp_dir }}, _ce_provision_data_dir: {{ _ce_provision_data_dir }}, _ce_provision_build_id: {{ _ce_provision_build_id }}, _ce_provision_force_play: true }"
]
"--extra-vars",
"{ _ce_provision_base_dir: {{ _ce_provision_base_dir }}, _ce_provision_build_dir: {{ _ce_provision_build_dir }}, _ce_provision_build_tmp_dir: {{ _ce_provision_build_tmp_dir }}, _ce_provision_data_dir: {{ _ce_provision_data_dir }}, _ce_provision_build_id: {{ _ce_provision_build_id }}, _ce_provision_force_play: true }"
]
}]
}
4 changes: 3 additions & 1 deletion roles/debian/ce_deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ ce_deploy:
# Other ce-deploy settings.
aws_support: true # installs boto3
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
ssh_key_bits: "521" # recommended to use 4096 for RSA keys, 521 is the maximum for ECDSA keys
ssh_key_type: ecdsa # set to rsa to create an RSA key
public_key_name: id_ecdsa.pub # this might be id_rsa.pub for RSA keys, existing users may have a key of a different name
username: "{{ _ce_deploy.username }}"
own_repository: "https://github.com/codeenigma/ce-deploy.git"
own_repository_branch: "master"
Expand Down
4 changes: 3 additions & 1 deletion roles/debian/ce_deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ ce_deploy:
# Other ce-deploy settings.
aws_support: true # installs boto3
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
ssh_key_bits: "521" # recommended to use 4096 for RSA keys, 521 is the maximum for ECDSA keys
ssh_key_type: ecdsa # set to rsa to create an RSA key
public_key_name: id_ecdsa.pub # this might be id_rsa.pub for RSA keys, existing users may have a key of a different name
username: "{{ _ce_deploy.username }}"
own_repository: "https://github.com/codeenigma/ce-deploy.git"
own_repository_branch: "master"
Expand Down
5 changes: 3 additions & 2 deletions roles/debian/ce_deploy/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
generate_ssh_key: true
home: "/home/{{ ce_deploy.username }}"
password: "*"
ssh_key_bits: 4096
ssh_key_bits: "{{ ce_deploy.ssh_key_bits }}"
ssh_key_type: "{{ ce_deploy.ssh_key_type }}"
ssh_key_comment: "{{ ce_deploy.username }}@{{ ansible_host }}"
system: true
groups: "{{ ce_deploy.groups }}"
Expand All @@ -35,7 +36,7 @@
- name: Place the public key in the ce-provision data directory on the controller server.
ansible.builtin.fetch:
dest: "{{ _ce_provision_data_dir }}"
src: "/home/{{ ce_deploy.username }}/.ssh/{{ ce_deploy.key_name }}"
src: "/home/{{ ce_deploy.username }}/.ssh/{{ ce_deploy.public_key_name }}"

- name: Ensure Git is installed.
ansible.builtin.apt:
Expand Down
4 changes: 3 additions & 1 deletion roles/debian/ce_provision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ ce_provision:
new_user: "{{ _init.ce_provision_new_user }}" # see _init defaults, set to false if user already exists or is ephemeral, e.g. an LDAP user
username: "{{ _ce_provision_username }}" # see _init defaults
#uid: "{{ _init.ce_provision_uid }}" # see _init defaults, optionally hardcode the UID for this user
public_key_name: id_rsa.pub # existing users may have a key of a different name
ssh_key_bits: "521" # recommended to use 4096 for RSA keys, 521 is the maximum for ECDSA keys
ssh_key_type: ecdsa # set to rsa to create an RSA key
public_key_name: id_ecdsa.pub # this might be id_rsa.pub for RSA keys, existing users may have a key of a different name
# Main repo.
own_repository: "https://github.com/codeenigma/ce-provision.git"
own_repository_branch: "master"
Expand Down
4 changes: 3 additions & 1 deletion roles/debian/ce_provision/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ ce_provision:
new_user: "{{ _init.ce_provision_new_user }}" # see _init defaults, set to false if user already exists or is ephemeral, e.g. an LDAP user
username: "{{ _ce_provision_username }}" # see _init defaults
#uid: "{{ _init.ce_provision_uid }}" # see _init defaults, optionally hardcode the UID for this user
public_key_name: id_rsa.pub # existing users may have a key of a different name
ssh_key_bits: "521" # recommended to use 4096 for RSA keys, 521 is the maximum for ECDSA keys
ssh_key_type: ecdsa # set to rsa to create an RSA key
public_key_name: id_ecdsa.pub # this might be id_rsa.pub for RSA keys, existing users may have a key of a different name
# Main repo.
own_repository: "https://github.com/codeenigma/ce-provision.git"
own_repository_branch: "master"
Expand Down
3 changes: 2 additions & 1 deletion roles/debian/ce_provision/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
generate_ssh_key: true
home: "/home/{{ ce_provision.username }}"
password: "*"
ssh_key_bits: 4096
ssh_key_bits: "{{ ce_provision.ssh_key_bits }}"
ssh_key_type: "{{ ce_provision.ssh_key_type }}"
ssh_key_comment: "{{ ce_provision.username }}@{{ ansible_host }}"
system: true
groups: "{{ ce_provision.groups }}"
Expand Down
Loading