diff --git a/Makefile b/Makefile index d2242a5..4684dd5 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +setup: + cd vagrant && vagrant plugin install vagrant-disksize + list: vagrant status up: diff --git a/test-usage/playbook.yml b/test-usage/playbook.yml index e8ec9f0..0ee827b 100644 --- a/test-usage/playbook.yml +++ b/test-usage/playbook.yml @@ -5,14 +5,6 @@ roles: tasks: - - name: Upload Prometheus configuration - copy: - src: files/prometheus.yml - dest: ~/prometheus.yml - owner: root - group: root - mode: '0644' - - name: Deploy myappstack stack from compose file community.docker.docker_stack: name: myappstack diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index 00e8d5c..dc70a2f 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -1,4 +1,4 @@ -num_workers = 3 +num_workers = 1 nodes = [ { @@ -13,7 +13,8 @@ nodes = [ ip: '192.168.56.11', ram: 512, cpus: 1, - groups: ['swarm_workers','storage'] + # groups: ['swarm_workers','storage'] + groups: %w[swarm_workers storage] } ] @@ -53,8 +54,12 @@ Vagrant.configure('2') do |config| config.vm.define node[:hostname] do |node_config| node_config.vm.hostname = node[:hostname] node_config.vm.box = 'debian/bullseye64' - # node_config.vm.box = 'generic/archlinux64' + # node_config.vm.disk :disk, size: '32GB', primary: true + node_config.disksize.size = "50GB" + # node_config.vm.synced_folder "./data", "/vagrant_data" + # node_config.vm.box_version = "20250415.336224" + # node_config.vm.box = 'generic/archlinux64' node_config.vm.network 'private_network', ip: node[:ip] node_config.vm.provider 'virtualbox' do |vb| diff --git a/vagrant/setup.yml b/vagrant/setup.yml index 30b5630..10725e0 100644 --- a/vagrant/setup.yml +++ b/vagrant/setup.yml @@ -4,6 +4,6 @@ tasks: - name: Placeholder - shell: echo 'We don\'t use the setup playbook as they run in sequence. Better to run on the whole inventory after.' + shell: echo "We don\'t use the setup playbook as they run in sequence. Better to run on the whole inventory after." args: chdir: $HOME