Minor formatting etc

This commit is contained in:
lif
2025-10-17 15:14:44 +01:00
parent 492318c2e1
commit 967d77789d
4 changed files with 12 additions and 12 deletions

View File

@@ -1,3 +1,6 @@
setup:
cd vagrant && vagrant plugin install vagrant-disksize
list:
vagrant status
up:

View File

@@ -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

11
vagrant/Vagrantfile vendored
View File

@@ -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|

View File

@@ -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