From 775b8d13624a7ca0e1322a0c4af5fef346ebc69a Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 16 Aug 2021 13:52:34 +0200 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20niveau=20des=20tests=20Ansible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/Vagrantfile | 21 ++++++++++++++++++++- test/vagrant.yml | 18 +++++++++++------- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/test/Vagrantfile b/test/Vagrantfile index 95b742f..95b29dd 100644 --- a/test/Vagrantfile +++ b/test/Vagrantfile @@ -15,7 +15,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # end config.vm.provider :libvirt do |libvirt| # libvirt.storage :file, :size => '10G', :device => 'vdb' - libvirt.memory = 512 + libvirt.memory = 1024 libvirt.cpus = 1 end @@ -98,6 +98,25 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| end end + # Squeeze + config.vm.define :squeeze do |node| + node.vm.hostname = "squeeze" + node.vm.box = "debian/squeeze64" + node.vm.provision :ansible do |ansible| + ansible.limit = "squeeze" + ansible.playbook = "vagrant.yml" + # ansible.tags = "mysql" + ansible.raw_arguments = [ + "-b", + "--ask-vault-pass", + # "--diff", + # "--step", + # "--syntax", + # "-vvv", + ] + end + end + # # Stretch # config.vm.define :mongo1 do |node| diff --git a/test/vagrant.yml b/test/vagrant.yml index a02f323..f2a6216 100644 --- a/test/vagrant.yml +++ b/test/vagrant.yml @@ -12,6 +12,7 @@ # evolinux_fqdn: "{{ evolinux_hostname }}.{{ evolinux_domain }}" # evolinux_internal_hostname: "vagrant-{{ inventory_hostname }}-internal" # evolinux_internal_domain: "evolix-internal.local" + # host_group: vagrant evolinux_apt_upgrade: False # evolinux_root_disable_ssh: False @@ -65,9 +66,6 @@ - name: php74 release: bullseye # evolinux_apt_public_sources: False - # tasks: - # - debug: - # var: "ansible_lsb.codename" # pre_tasks: # - name: "Ansible | List all known variables and facts" @@ -75,10 +73,10 @@ # var: hostvars[inventory_hostname] roles: - - bullseye-detect # - aws-tuning - # - evolinux-base - # - evolinux-users + # - apt + - evolinux-base + - evolinux-users # - { role: del-user, username: "gcolpart" } # - metricbeat # - { role: squid, squid_localproxy_enable: True } @@ -87,7 +85,8 @@ # - mysql # - mysql-oracle # - percona - # - packweb-apache + # - postgresql + - packweb-apache # - { role: packweb-apache, packweb_mysql_variant: "oracle" } # - { role: memcached, memcached_instance_name: "instance1" } # - { role: memcached, memcached_instance_name: "instance2", memcached_port: 11212 } @@ -96,6 +95,7 @@ # - { role: redis, redis_instance_name: "instance2", redis_port: 6381 } # - evoacme # - etc-git + # - kvm-host # - mongodb # - mysql # - proftpd @@ -122,6 +122,10 @@ # - { role: webapps/evoadmin-mail } # - { role: webapps/roundcube } + # tasks: + # - debug: + # var: "ansible_lsb.codename" + # post_tasks: # - include_role: # name: etc-git