Contact: [email protected]
Project/chalenge proposed as a stage of Junior Infrastructure Analyst recruitment from Intelie.
Implement Jenkins, using chef, vagrant and virtualbox as virtual instance.
- Execute the project in a Ubuntu 16.04 enviroment and have root account or administration privileges (sudo).
- Have git and chefdk 0.18.30 instaled in your enviroment to clone the repositorie and execute it.
- Provisioning a Virtual machine with the Virtualbox Hypervisor and Ubuntu 16.04 as a guest OS.
- Provisioning the software Jenkins with chef solo cookbook, integrated with the Vagrantfile.
- The first step of chef solo cookbook is download and include jenkins repository key.
- After that, it replaces the file /etc/apt/sources.list that have included the jenkins official repository.
- Then, the repository cache are updated and the packages openjdk-8-jre-headless and jenkins are instaled.
- Finally the jenkins is configured to startup as a system service.
Execute the commands bellow:
- sudo su
- cd ~
- git clone https://github.com/erickdavi/intelie-ci2.git.
- cd intelie-ci2
- vagrant up.
- Access Jenkins with your browser at the address http://localhost:8080 and manage your instance, opening the file /var/lib/jenkins/secrets/initialAdminPassword and use the content of it archive for your first authentication in Jenkins.
Note: To manage the instance, access the /root/intelie-ci2/ directory and execute the command vagrant ssh.
.intelie-ci/
├── cookbooks
│ └── jenkins
│ ├── Berksfile
│ ├── chefignore
│ ├── _gitignore
│ ├── _kitchen.yml
│ ├── metadata.rb
│ ├── README.md
│ ├── recipes
│ │ └── default.rb
│ ├── spec
│ │ ├── spec_helper.rb
│ │ └── unit
│ │ └── recipes
│ │ └── default_spec.rb
│ ├── templates
│ │ └── sources.list.erb
│ └── test
│ └── recipes
│ └── default_test.rb
├── README.md
└── Vagrantfile
I feel gratefull by this oportunity and I hope to meet you them soon. Erick Davi.
Projeto/desafio proposto como etapa para o recrutamento de analista de infraestrutura junior na Intelie.
Implementar a instalação do Jenkins, utilizando chef e Vagrant, tendo o virtualbox como instância virtual.
- Executar o projeto no Ubuntu 16.04 como root ou privilégios de administração (sudo).
- Possuir git e chefdk 0.18.30 instalados em seu sistema para clonar o repositório e executá-lo, respectivamente.
- Provisionar uma máquina virtual com virtualbox, tendo o Ubuntu 16.04 como sistema operacional convidado.
- Provisionar o Jenkins através de cookbook do chef solo, integrado com o Vagrantfile.
- O primeiro passo executado pelo cookbook é realizar o download e inclusão da chave de autenticação do repositório oficial do jenkins.
- Posteriormente, o arquivo /etc/apt/sources.list contendo a entrada para o repositório oficial do jenkins será incluído através do template.
- Então, será realizada a atualização do cache dos repositórios e a instalação dos pacotes openjdk-8-jre-headless e jenkins.
- Finalmente o jenkins será configurado na inicialização do sistema como um serviço.
Execute os comandos abaixo:
- sudo su
- cd ~
- git clone https://github.com/erickdavi/intelie-ci2.git.
- cd intelie-ci2
- vagrant up.
- Acesse o jenkins através do seu navegador favorito no endereço http://localhost:8080 e gerencie sua instância, abrindo o arquivo /var/lib/jenkins/secrets/initialAdminPassword usando o conteúdo do arquivo em sua primeira autenticação no jenkins.
Nota: Para gerenciar sua intância, acesse o diretório /root/intelie-ci2 e execute o comando vagrant ssh.
.intelie-ci/
├── cookbooks
│ └── jenkins
│ ├── Berksfile
│ ├── chefignore
│ ├── _gitignore
│ ├── _kitchen.yml
│ ├── metadata.rb
│ ├── README.md
│ ├── recipes
│ │ └── default.rb
│ ├── spec
│ │ ├── spec_helper.rb
│ │ └── unit
│ │ └── recipes
│ │ └── default_spec.rb
│ ├── templates
│ │ └── sources.list.erb
│ └── test
│ └── recipes
│ └── default_test.rb
├── README.md
└── Vagrantfile
Sinto-me grato pela oportunidade de participar desta etapa do processo seletivo e espero conhecê-los em breve. Cordialmente Erick Davi.