OS Factory
OSFactory is an image creation framework (OS) based on Packer and Ansible and is currently used within the Société Générale for the creation of all the images used on the Public Cloud.
How to install it
AWS
Pre-requistes installation for AWS
Please run this command to install all dependencies.
ansible-playbook resource/dependencies/aws.install.yml -i "MY_IP,"
Dependencies for AWS
Infrastructure for AWS
To create images on AWS, the EC2 instance must be created in the same location (same subnet and region) as the one where packer will start creating your image.
Azure
Pre-requistes installation for Azure
Please run this command to install all dependencies.
ansible-playbook resource/dependencies/azure.install.yml -i "MY_IP,"
Dependencies for Azure
You need at least two subscription, and they need to be controlled by the SPN.
Infrastructure for Azure
- Create a Ubuntu VM and set the Managed Service Identity according : https://docs.microsoft.com/en-us/azure/active-directory/managed-service-identity/overview
- Create a SPN : https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli?toc=%2fazure%2fazure-resource-manager%2ftoc.json
- On the Ubuntu VM create 2 environnement variables :
export arm_client_id='yourclientid' export arm_client_secret='yoursecret'
All dependencies For project
License
Author Information
This project has been created in 2017 by Maxence Maireaux and Product Owner by Yannick Neff.