Ansible Playbook
Initial setup
The first step is to connect to the target machine. Do this via VNC or via the Web Console, or enable Remote Login in the macOS settings, then SSH in. To download and run the setup script contained in the repository. To do that run the following commands:- OSX-CI - Installs all common tooling and creates a user capable of running build jobs
- Xcode - Installs and configures Xcode
OSX-CI Role Requirements
The OSX-CI requires a path to a public public ssh key on the target machine. The role adds the key to theauthorized_keys file of the created user to enable remote login via ssh with a private key.
NOTE : To use the target machine as a Jenkins agent you will need a key pair generated using the RSA algorithm.
If you do not have a ssh key pair you can create one by executing on the target machine:
- buildMachine_rsa - This is the private key. Keep it safe and do not share it with anyone.
- buildMachine_rsa.pub - This is the public key.
scp. This command executes copy over SSH; run:
Xcode Role Requirements
The Xcode needs a Xcode xip file to be present on the target machine. Get the version needed from the Apple Downloads Page.Password Encryption
The playbook requires a privilege escalation password:Running the Ansible Playbook
To execute the Ansible playbook you can use the following command by replacing the{placehoders} with the correct values: