Deploy alfresco, keycloak, httpd-saml based on docker via ansible
- HTML 68.1%
- Jinja 24.9%
- Shell 7%
| roles | ||
| all.yml | ||
| inventory | ||
| LICENSE | ||
| README.md | ||
Ansible deploy for alfresco on docker with keycloak
UPDATE: runs now on acs-community 6.1.2-ga
Begin with minimal CentOS Server
Disk config:
- /
- /var
- /opt
- swap
/, /var and / opt as xfs on lvm
Install ansible & git
yum install ansible git
clone this repo
git clone ....
cd alfresco-docker-deploy
login to my docker registry
You need access rights to /alfresco
docker login reg.pflaeging.net
edit inventory
start deployment
ansible-playbook -i inventory all.yml
KeyCloak config
Log in to Keycloak:
https://[keycloak-host]/auth (keycloak-host in the example is cidran.pflaeging.net)
- User Realm Alfresco
- Never work in Realm Master. It's only for super user!
- Change Admin Password (upper left!)
- Add e-Mail Config
User Federation
- Add User Federation
- Add Role Mapper in User Federation
- Add Group Mapper in User Federation
- Sync User, Groups and Roles manually
You can check back LDAP config with an LDAP Editor like Apache Directory Studio:
LDAP URL: ldap://myservername:10389
Login data provided by config above ;-)
Add Apache Mellon Client
This is for Alfresco Share!
Copy the files /opt/docker/httpd-saml/apache-conf/[my-virtual-alfs]/mellon_metadata.xml from your Appserver to your local machine.
This file is generated on first startup of the httpd-saml container and contains the setup for the keycloak client.
- Go to Clients in KeyCloak
- Create
- Import the downloaded
mellon_metadata.xml - Save
- Give it a name like: "Alfresco Share" (Don't change anything else, until you know what you're doing)
- In the Mappers section:
- Add Builtin
- Check all on the right
- Add selected
- Then create username mapper:
- Create
- Name: username
- Mapper Type: User Property
- Property: username
- Friendly Name: username
- SAML Attribute Name: username
- SAML Attribbute NameFormat: Basic
Add your first user
This should be admin!
- KeyCloak -> Users
- Add user
- Username: admin
- Email: webmaster@home.local
- First Name: Admin
- Last Name: My Instance
- User Enabled: On
- Email Cerified: On
- Save
- Then go to Credentials:
- New Password: ;-)
- ...
- Temporary: Off
- Reset Password
Peter Pfläging peter@pflaeging.net