-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
161 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
keycloak-*.zip |
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,38 @@ | ||
Role Name | ||
========= | ||
|
||
A brief description of the role goes here. | ||
|
||
Requirements | ||
------------ | ||
|
||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. | ||
|
||
Role Variables | ||
-------------- | ||
|
||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. | ||
|
||
Dependencies | ||
------------ | ||
|
||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. | ||
|
||
Example Playbook | ||
---------------- | ||
|
||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: | ||
|
||
- hosts: servers | ||
roles: | ||
- { role: username.rolename, x: 42 } | ||
|
||
License | ||
------- | ||
|
||
BSD | ||
|
||
Author Information | ||
------------------ | ||
|
||
An optional section for the role authors to include contact information, or a website (HTML is not allowed). |
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,2 @@ | ||
--- | ||
# defaults file for identity |
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,2 @@ | ||
--- | ||
# handlers file for identity |
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,24 @@ | ||
galaxy_info: | ||
author: Alfresco | ||
namespace: alfresco | ||
description: Install Keycloak to enable SSO in Alfresco | ||
company: Hyland Software | ||
|
||
license: Apache-2.0 | ||
|
||
min_ansible_version: "2.12" | ||
|
||
platforms: | ||
- name: Ubuntu | ||
versions: | ||
- focal | ||
- bionic | ||
- name: EL | ||
versions: | ||
- "7" | ||
- "8" | ||
|
||
galaxy_tags: [] | ||
|
||
dependencies: | ||
- role: common |
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,7 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
tasks: | ||
- name: "Include identity" | ||
ansible.builtin.include_role: | ||
name: "identity" |
1 change: 1 addition & 0 deletions
1
roles/identity/molecule/default/host_vars/identity-instance.yml
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 @@ | ||
ansible_user: ansible |
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 @@ | ||
--- | ||
dependency: | ||
name: galaxy | ||
driver: | ||
name: docker | ||
platforms: | ||
- name: identity-instance | ||
image: $MOLECULE_ROLE_IMAGE | ||
dockerfile: ../../../../tests/molecule/Dockerfile-noprivs.j2 | ||
command: "/lib/systemd/systemd" | ||
privileged: true | ||
tmpfs: | ||
- /run | ||
- /run/lock | ||
- /tmp | ||
volume_mounts: | ||
- "/sys/fs/cgroup:/sys/fs/cgroup:ro" | ||
groups: | ||
- identity | ||
published_ports: | ||
- 0.0.0.0:8080:8080/tcp | ||
provisioner: | ||
name: ansible | ||
inventory: | ||
links: | ||
host_vars: host_vars | ||
group_vars: ../../../../group_vars | ||
verifier: | ||
name: ansible |
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,34 @@ | ||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
|
||
- name: Stat the tmp folder for identity | ||
ansible.builtin.stat: | ||
path: "/usr/share/identity/tmp" | ||
register: tmp_path_stat | ||
|
||
- name: Assert that tmp folder is setup correctly | ||
ansible.builtin.assert: | ||
that: | ||
- tmp_path_stat.stat.exists | ||
- tmp_path_stat.stat.isdir | ||
- tmp_path_stat.stat.mode == '0777' | ||
- tmp_path_stat.stat.uid == 0 | ||
- tmp_path_stat.stat.gid == 0 | ||
|
||
- name: Check if port 9200/tcp is listening | ||
ansible.builtin.wait_for: | ||
port: 9200 | ||
timeout: 30 | ||
connect_timeout: 1 | ||
msg: "Timeout waiting for 9200/tcp to respond" | ||
|
||
- name: Populate service facts | ||
ansible.builtin.service_facts: | ||
|
||
- name: Identity service is up and running | ||
ansible.builtin.assert: | ||
that: | ||
- ansible_facts.services['identity.service'] is defined | ||
- ansible_facts.services['identity.service'].state == 'running' |
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,8 @@ | ||
--- | ||
# tasks file for identity | ||
- name: Install Keycloak | ||
vars: | ||
keycloak_quarkus_admin_pass: "alfrescoalfrescoadmin" | ||
keycloak_quarkus_version: 21.1.2 | ||
ansible.builtin.include_role: | ||
name: middleware_automation.keycloak.keycloak_quarkus |
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 @@ | ||
localhost |
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,5 @@ | ||
--- | ||
- hosts: localhost | ||
remote_user: root | ||
roles: | ||
- identity |
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,2 @@ | ||
--- | ||
# vars file for identity |