-
Notifications
You must be signed in to change notification settings - Fork 21
/
Vagrantfile.template.pmm2-ub
54 lines (46 loc) · 2.76 KB
/
Vagrantfile.template.pmm2-ub
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This guide is optimized for Vagrant 1.7 and above.
# Although versions 1.6.x should behave very similarly, it is recommended
# to upgrade instead of disabling the requirement below.
Vagrant.require_version ">= 1.7.0"
Vagrant.configure(2) do |config|
# config.vm.box = "generic/ubuntu1804"
config.vm.box = "generic/ubuntu2004"
# config.vm.box = "generic/ubuntu2204"
# Disable the new default behavior introduced in Vagrant 1.7, to
# ensure that all Vagrant machines will use the same SSH key pair.
# See https://github.com/mitchellh/vagrant/issues/5005
config.ssh.insert_key = false
config.vm.define :UBUNTU_PMM_TEST do |t|
end
#####################################################
## Set your local path to project and vagrant path ##
#####################################################
config.vm.synced_folder "/media/sf_work/PMM/package-testing/", "/pmm/package-testing/"
config.vm.provision "shell", privileged: true, inline: <<-SHELL
## Set environment variables...
export PMM_SERVER_IP=10.0.2.2:443
export METRICS_MODE=auto
export PMM_VERSION="2.33.0"
export install_repo=main
# export install_repo=experimental
# export install_repo=testing
sudo apt-get update -y
sudo apt-get install -y software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install -y ansible git wget
cd /pmm/package-testing/playbooks
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_upgrade.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_custom_path.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration_auth_config.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration_auth_register.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration_custom_path.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration_custom_port.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration_upgrade_custom_port.yml
######### Matrix tests
ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration_upgrade.yml
# ansible-playbook -vv --connection=local --inventory 127.0.0.1, --limit 127.0.0.1 pmm2-client_integration_upgrade_custom_path.yml
#########
SHELL
end