Outils pour utilisateurs

Outils du site


tech:ansible_docker_execution_environment

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:ansible_docker_execution_environment [2025/09/24 16:42] Jean-Baptistetech:ansible_docker_execution_environment [2025/11/20 15:03] (Version actuelle) Jean-Baptiste
Ligne 5: Ligne 5:
 Voir : Voir :
 * [[notes_ansible_ansible-navigator|ansible-navigator]] * [[notes_ansible_ansible-navigator|ansible-navigator]]
 +* https://ansible.readthedocs.io/projects/creator/installing/#initialize-execution-environment-project
 * https://github.com/redhat-cop/ee_utilities/blob/devel/examples/ee_builder_base.yaml * https://github.com/redhat-cop/ee_utilities/blob/devel/examples/ee_builder_base.yaml
 * [[https://developers.redhat.com/articles/2023/05/08/how-create-execution-environments-using-ansible-builder|How to create execution environments using ansible-builder]] * [[https://developers.redhat.com/articles/2023/05/08/how-create-execution-environments-using-ansible-builder|How to create execution environments using ansible-builder]]
Ligne 17: Ligne 18:
  
 Voir aussi les execution-environment.yml : Voir aussi les execution-environment.yml :
-* https://github.com/ansible/awx-ee/blob/devel/execution-environment.yml+* https://github.com/kennedymeadows/awx-ee-juniper/tree/main et https://www.keepitsimplesimon.io/posts/awx-execution-environments
 * https://docs.ansible.com/automation-controller/latest/html/userguide/ee_reference.html * https://docs.ansible.com/automation-controller/latest/html/userguide/ee_reference.html
 * https://access.redhat.com/documentation/fr-fr/red_hat_ansible_automation_platform/2.4/html-single/creating_and_consuming_execution_environments/index * https://access.redhat.com/documentation/fr-fr/red_hat_ansible_automation_platform/2.4/html-single/creating_and_consuming_execution_environments/index
 * https://github.com/ansible-community/images * https://github.com/ansible-community/images
 * https://github.com/ansiblejunky/ansible-execution-environment * https://github.com/ansiblejunky/ansible-execution-environment
 +* https://github.com/ansible/awx-ee/
  
  
Ligne 47: Ligne 49:
 # podman login --tls-verify=false registry.acme.fr -u admin -p P@ssw0rd # podman login --tls-verify=false registry.acme.fr -u admin -p P@ssw0rd
  
 +# Créer le dossier context/ avec le Containerfile
 ansible-builder create #--file execution-environment-dev.yml ansible-builder create #--file execution-environment-dev.yml
-# Créer le dossier context/ 
  
 +# Créer l'image du container à partir du Containerfile généré
 podman build -f context/Containerfile -t img01:0.9.1 podman build -f context/Containerfile -t img01:0.9.1
 +
 +# Ou pour générer directement l'image du container :
 +ansible-builder build --tag img01:0.9.1
  
 podman images podman images
Ligne 225: Ligne 231:
  
  
-<file yaml>+<code yaml>
 version: 3 version: 3
  
Ligne 273: Ligne 279:
 options: options:
   user: '1000'   user: '1000'
-</file>+</code> 
 + 
 + 
 +------------ 
 + 
 +''execution-environment.yml'' 
 +<code yaml> 
 +--- 
 + 
 +version: 3 
 + 
 +dependencies: 
 +  galaxy: requirements.yml 
 +  python: requirements.txt 
 +  system: bindep.txt 
 + 
 +images: 
 +  base_image: 
 +    name: ghcr.io/ansible-community/community-ee-base:2.19.1-1 
 + 
 +options: 
 +  user: '1000' 
 +</code> 
 + 
 +''requirements.yml'' 
 +<code yaml> 
 +--- 
 + 
 +collections: 
 +  - ansible.utils 
 +  - ansible.posix 
 +  - ansible.windows 
 +  - ansible.netcommon 
 +  - community.general 
 +  - community.windows 
 +  - community.vmware 
 +  - community.crypto 
 +  - community.postgresql 
 +  - community.mysql 
 +  - community.network 
 +  - kubernetes.core 
 +  - containers.podman 
 +  - awx.awx 
 +  - vmware.vmware 
 +  - vmware.vmware_rest 
 +  - microsoft.ad 
 +  # - fortinet.fortios 
 +</code> 
 + 
 +''requirements.txt'' 
 +<code -> 
 +six 
 +psutil 
 +# pywinrm 
 +jc 
 +jmespath 
 +</code> 
 + 
 + 
 +''bindep.txt'' 
 +<code -> 
 +git 
 +rsync 
 +curl 
 +wget 
 +psmisc 
 +tar 
 +unzip 
 +gzip 
 +#python38-wheel [platform:centos-8 platform:rhel-8] 
 +iputils [platform:rpm] 
 +bind-utils [platform:rpm] 
 +#python3-jmespath [platform:rpm] 
 +#net-snmp-utils [platform:rpm] 
 +</code> 
 + 
 +Exemple de fichier bindep.txt : 
 +* https://github.com/openstack/openstack-ansible/blob/master/bindep.txt 
  
  
  
tech/ansible_docker_execution_environment.1758724922.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki