Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CI no Nubank | Setup de ambientes macOS com Ans...

CI no Nubank | Setup de ambientes macOS com Ansible

Pietro Caselani

January 31, 2019
Tweet

More Decks by Pietro Caselani

Other Decks in Programming

Transcript

  1. - name: Check if Xcode CLI is installed shell: xcode-select

    -p register: xcode_cli ignore_errors: yes - name: Install Xcode CLI script: scripts/install-xcode-cli.sh become: yes when: xcode_cli.rc == 2
  2. - name: Check if Xcode CLI is installed shell: xcode-select

    -p register: xcode_cli ignore_errors: yes - name: Install Xcode CLI script: scripts/install-xcode-cli.sh become: yes when: xcode_cli.rc == 2
  3. - name: Check if Xcode CLI is installed shell: xcode-select

    -p register: xcode_cli ignore_errors: yes - name: Install Xcode CLI script: scripts/install-xcode-cli.sh become: yes when: xcode_cli.rc == 2
  4. - name: Check if Xcode CLI is installed shell: xcode-select

    -p register: xcode_cli ignore_errors: yes - name: Install Xcode CLI script: scripts/install-xcode-cli.sh become: yes when: xcode_cli.rc == 2
  5. - name: Check if Xcode CLI is installed shell: xcode-select

    -p register: xcode_cli ignore_errors: yes - name: Install Xcode CLI script: scripts/install-xcode-cli.sh become: yes when: xcode_cli.rc == 2
  6. - name: Check if Xcode CLI is installed shell: xcode-select

    -p register: xcode_cli ignore_errors: yes - name: Install Xcode CLI script: scripts/install-xcode-cli.sh become: yes when: xcode_cli.rc == 2
  7. ansible-playbook -i $IP_ADDRESS, \ -c ssh \ -u $USER \

    --vault-password $VAULT_PASSWORD_PATH \ $PLAYBOOK_PATH
  8. ansible-playbook -i $IP_ADDRESS, \ -c ssh \ -u $USER \

    --vault-password $VAULT_PASSWORD_PATH \ $PLAYBOOK_PATH
  9. ansible-playbook -i $IP_ADDRESS, \ -c ssh \ -u $USER \

    --vault-password $VAULT_PASSWORD_PATH \ $PLAYBOOK_PATH
  10. ansible-playbook -i $IP_ADDRESS, \ -c ssh \ -u $USER \

    --vault-password $VAULT_PASSWORD_PATH \ $PLAYBOOK_PATH
  11. ansible-playbook -i $IP_ADDRESS, \ -c ssh \ -u $USER \

    --vault-password $VAULT_PASSWORD_PATH \ $PLAYBOOK_PATH
  12. --- - name: Setup Jenkins agent roles: - env_setup -

    pip - aws - homebrew_setup - git - xcode_cli - ruby - rome - carthage - icli - xcode - agent_setup - java - jenkins
  13. Próximos Passos • Melhorar performance dos playbooks • Validar configurações

    • Reaproveitar playbooks para setup das máquinas de devs mobile