-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[step-ca] rework existing key role parameters
- Loading branch information
Showing
19 changed files
with
331 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
platforms: | ||
- name: step-ca-ubuntu-22 | ||
groups: | ||
- ubuntu | ||
- ca | ||
image: "docker.io/geerlingguy/docker-ubuntu2204-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-ubuntu-20 | ||
groups: | ||
- ubuntu | ||
- ca | ||
image: "docker.io/geerlingguy/docker-ubuntu2004-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-ubuntu-18 | ||
groups: | ||
- ubuntu | ||
- ca | ||
image: "docker.io/geerlingguy/docker-ubuntu1804-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-debian-11 | ||
groups: | ||
- debian | ||
- ca | ||
image: "docker.io/geerlingguy/docker-debian11-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-debian-10 | ||
groups: | ||
- debian | ||
- ca | ||
image: "docker.io/geerlingguy/docker-debian10-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-rockylinux-9 | ||
groups: | ||
- rockylinux | ||
- ca | ||
image: "docker.io/geerlingguy/docker-rockylinux9-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-rockylinux-8 | ||
groups: | ||
- rockylinux | ||
- ca | ||
image: "docker.io/geerlingguy/docker-rockylinux8-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-fedora-36 | ||
groups: | ||
- fedora | ||
- ca | ||
image: "docker.io/geerlingguy/docker-fedora36-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
|
||
provisioner: | ||
playbooks: | ||
converge: ../converge.yml | ||
verify: ../verify.yml | ||
inventory: | ||
group_vars: | ||
ca: | ||
step_ca_name: Molecule Test CA | ||
step_ca_user: step-ca-molecule | ||
step_ca_root_password: molecule | ||
step_ca_intermediate_password: molecule-intermediate | ||
step_ca_path: /etc/step-ca-molecule | ||
step_ca_ssh: yes | ||
|
||
step_ca_existing_root_file_is_local: true | ||
step_ca_existing_root_file: ../files/molecule-ca.crt | ||
step_ca_existing_key_file_is_local: true | ||
step_ca_existing_key_file: ../files/molecule-ca.key | ||
step_ca_existing_key_password: wvTfbyADhoowLZp3RsJ9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- hosts: "ubuntu:debian" | ||
tasks: | ||
- name: Update apt cache | ||
apt: | ||
update_cache: yes | ||
|
||
- hosts: rockylinux:fedora | ||
tasks: | ||
# Required to prevent issues with ansible_default_ipv4 missing | ||
- name: Install iproute | ||
package: | ||
name: iproute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../tests/roles/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
platforms: | ||
- name: step-ca-ubuntu-22 | ||
groups: | ||
- ubuntu | ||
- ca | ||
image: "docker.io/geerlingguy/docker-ubuntu2204-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-ubuntu-20 | ||
groups: | ||
- ubuntu | ||
- ca | ||
image: "docker.io/geerlingguy/docker-ubuntu2004-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-ubuntu-18 | ||
groups: | ||
- ubuntu | ||
- ca | ||
image: "docker.io/geerlingguy/docker-ubuntu1804-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-debian-11 | ||
groups: | ||
- debian | ||
- ca | ||
image: "docker.io/geerlingguy/docker-debian11-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-debian-10 | ||
groups: | ||
- debian | ||
- ca | ||
image: "docker.io/geerlingguy/docker-debian10-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-rockylinux-9 | ||
groups: | ||
- rockylinux | ||
- ca | ||
image: "docker.io/geerlingguy/docker-rockylinux9-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-rockylinux-8 | ||
groups: | ||
- rockylinux | ||
- ca | ||
image: "docker.io/geerlingguy/docker-rockylinux8-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
- name: step-ca-fedora-36 | ||
groups: | ||
- fedora | ||
- ca | ||
image: "docker.io/geerlingguy/docker-fedora36-ansible" | ||
systemd: always | ||
override_command: false | ||
pre_build_image: true | ||
|
||
|
||
provisioner: | ||
playbooks: | ||
converge: ../converge.yml | ||
verify: ../verify.yml | ||
inventory: | ||
group_vars: | ||
ca: | ||
step_ca_name: Molecule Test CA | ||
step_ca_user: step-ca-molecule | ||
step_ca_root_password: molecule | ||
step_ca_intermediate_password: molecule-intermediate | ||
step_ca_path: /etc/step-ca-molecule | ||
step_ca_ssh: yes | ||
|
||
step_ca_existing_root_file: /tmp/molecule-ca.crt | ||
step_ca_existing_key_file: /tmp/molecule-ca.key | ||
step_ca_existing_key_password: wvTfbyADhoowLZp3RsJ9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
- hosts: "ubuntu:debian" | ||
tasks: | ||
- name: Update apt cache | ||
apt: | ||
update_cache: yes | ||
|
||
- hosts: rockylinux:fedora | ||
tasks: | ||
# Required to prevent issues with ansible_default_ipv4 missing | ||
- name: Install iproute | ||
package: | ||
name: iproute | ||
|
||
- hosts: all | ||
tasks: | ||
- name: Root cert is present # noqa no-relative-paths | ||
ansible.builtin.copy: | ||
src: "../files/molecule-ca.crt" | ||
dest: "{{ step_ca_existing_root_file }}" | ||
owner: root | ||
group: root | ||
mode: "644" | ||
- name: Root key is present # noqa no-relative-paths | ||
ansible.builtin.copy: | ||
src: "../files/molecule-ca.key" | ||
dest: "{{ step_ca_existing_key_file }}" | ||
owner: root | ||
group: root | ||
mode: "644" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../tests/roles/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIBbzCCARWgAwIBAgIQCjUjHu6fX22br9bhuK4VhzAKBggqhkjOPQQDAjAWMRQw | ||
EgYDVQQDEwttb2xlY3VsZS1jYTAeFw0yMzA3MjMxOTUwNTJaFw0zMzA3MjAxOTUw | ||
NTJaMBYxFDASBgNVBAMTC21vbGVjdWxlLWNhMFkwEwYHKoZIzj0CAQYIKoZIzj0D | ||
AQcDQgAE+U7gQ9km5B5Q+1wl+Yf8kEse6ze1UqiH1W7KrkBCCZI2i/rhL4goffLY | ||
oAOD4tnf81Jj2GF5egNxAdgTKrt01KNFMEMwDgYDVR0PAQH/BAQDAgEGMBIGA1Ud | ||
EwEB/wQIMAYBAf8CAQEwHQYDVR0OBBYEFHY0q71xVuTRhW1pj4HL8bmSunnkMAoG | ||
CCqGSM49BAMCA0gAMEUCIGCnGMfqV8pUfF3Olr6OpakuuvlsvDdgEqqL/45/O9aD | ||
AiEAidGmtfwztdJ5b+cA8RTA9CVpPicKRZW7cdanpLU8CsE= | ||
-----END CERTIFICATE----- |
Oops, something went wrong.