Minor formatting etc
This commit is contained in:
3
Makefile
3
Makefile
@@ -1,3 +1,6 @@
|
|||||||
|
setup:
|
||||||
|
cd vagrant && vagrant plugin install vagrant-disksize
|
||||||
|
|
||||||
list:
|
list:
|
||||||
vagrant status
|
vagrant status
|
||||||
up:
|
up:
|
||||||
|
|||||||
@@ -5,14 +5,6 @@
|
|||||||
roles:
|
roles:
|
||||||
|
|
||||||
tasks:
|
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
|
- name: Deploy myappstack stack from compose file
|
||||||
community.docker.docker_stack:
|
community.docker.docker_stack:
|
||||||
name: myappstack
|
name: myappstack
|
||||||
|
|||||||
11
vagrant/Vagrantfile
vendored
11
vagrant/Vagrantfile
vendored
@@ -1,4 +1,4 @@
|
|||||||
num_workers = 3
|
num_workers = 1
|
||||||
|
|
||||||
nodes = [
|
nodes = [
|
||||||
{
|
{
|
||||||
@@ -13,7 +13,8 @@ nodes = [
|
|||||||
ip: '192.168.56.11',
|
ip: '192.168.56.11',
|
||||||
ram: 512,
|
ram: 512,
|
||||||
cpus: 1,
|
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|
|
config.vm.define node[:hostname] do |node_config|
|
||||||
node_config.vm.hostname = node[:hostname]
|
node_config.vm.hostname = node[:hostname]
|
||||||
node_config.vm.box = 'debian/bullseye64'
|
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_version = "20250415.336224"
|
||||||
|
# node_config.vm.box = 'generic/archlinux64'
|
||||||
|
|
||||||
node_config.vm.network 'private_network', ip: node[:ip]
|
node_config.vm.network 'private_network', ip: node[:ip]
|
||||||
node_config.vm.provider 'virtualbox' do |vb|
|
node_config.vm.provider 'virtualbox' do |vb|
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Placeholder
|
- 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:
|
args:
|
||||||
chdir: $HOME
|
chdir: $HOME
|
||||||
|
|||||||
Reference in New Issue
Block a user