Use Ansible 2.4 to deploy your JAMF Software's JSS server.
Playbook will perform the following tasks :
- Install some common and basic tools on server
- Harden the server security (TO-DO)
- Configure Let's Encrypt HTTPS certificates (TO-DO)
- Install JRE-8 and Java Cryptography Extensions
- Install Tomcat 8
- Install MariaDB
- Install Jamf|PRO (with 10.3.1 Installer for Linux)
- Set-up a daily backup (TO-DO)
You will need to have at least one Ubuntu 16.04 LTS "server" with OpenSSH installed. You also can host databases on separate server. You surely want to have Internet connection and DNS properly set up. Of course you have Ansible (2.4+) installed on your computer.
- Configure the "jamf_hosts" file:
- FQDN hostname
- IPv4 if needed
- SSH user
- if you want another DB server, repeat for bdd_servers, either configure the same host
- Edit bdd_servers vars:
- change DB server, username and password…
- Download Jamf Pro Installer for Linux from your Assets and decompress it
- Put the "jamfproinstaller.run" file in 'roles/jamfpro/files/Installer_for_Linux/'
- Run the Ansible playbook and see what happens:
ANSIBLE_CONFIG=ansible.cfg ansible-playbook ansible/jamf.yml -i ansible/jamf_hosts --diff
In minutes, you'll have access to the licence agreement page of your freshly installed Jamf Pro Server.
You can also choose to test and launch playbook step-by-step:
- Install basic tools (check-mode)
ANSIBLE_CONFIG=ansible.cfg ansible-playbook ansible/jamf.yml -i ansible/jamf_hosts -t common --diff --check
- Install JRE-8 (check-mode)
ANSIBLE_CONFIG=ansible.cfg ansible-playbook ansible/jamf.yml -i ansible/jamf_hosts -t jre-8 --diff --check
- Install Tomcat (check-mode)
ANSIBLE_CONFIG=ansible.cfg ansible-playbook ansible/jamf.yml -i ansible/jamf_hosts -t tomcat --diff --check
- Install MariaDB (check-mode)
ANSIBLE_CONFIG=ansible.cfg ansible-playbook ansible/jamf.yml -i ansible/jamf_hosts -t mariadb --diff --check
- Install Jamf|PRO (check-mode)
ANSIBLE_CONFIG=ansible.cfg ansible-playbook ansible/jamf.yml -i ansible/jamf_hosts -t jamfpro --diff --check