@@ -28,6 +28,11 @@ Inside the test-vm's the salt directories are mapped to /srv/salt/*
2828- internet connection (for things like package install)
2929- In case of a vmware-vm as host, following settings are needed:
3030 ![ settings vmware-vm] ( images/vmware_setting.png )
31+ - In case you want to use "Google Cloud" as a provider backend you need:
32+ - An account and a project in GCP (with allocated budget)
33+ - The gcloud cli utility installed (` snap install google-cloud-sdk --classic ` )
34+ - Some additional dependencies installed (` apt-get install -y nfs-kernel-server portmap autossh ` )
35+ - Gcloud configured to use the correct account/project (core/account property): (` gcloud init ` )
3136
3237## 1.2. configuration
3338
@@ -41,8 +46,20 @@ used to deploy the ssh-pub-key to each launchend vm to `root` and to the normal
4146
4247Further, in ` samutev.conf ` you can customize [ cloudinit] ( https://cloudinit.readthedocs.io/en/latest/ ) to bootstrap the vms.
4348
49+ If you intend to use the GCP provider backend you also need to customize
50+ 1 . ` my_ssh_pub_key="" `
51+ should be the public SSH key you want to use to connect to the instances
52+ 2 . ` DEFAULT_GCP_ZONE ` and ` FALLBACK_GCP_MACH_TYPE `
53+ should not be modified unless you know what/why you are doing
4454
4555## 1.3. usage
56+ ### gcp
57+ See section ` multipass ` - only the default values displayed differ a little.
58+ To use provider ` gcp ` instead of the default (` multipass ` ) just prefix the script with ` PROVIDER=gcp ` :
59+ ```
60+ PROVIDER=gcp ./samutev.sh -h
61+ ```
62+ ### multipass
4663```
4764Usage:
4865 ./samutev.sh -h display this help message
@@ -89,18 +106,35 @@ Both directories will be available either to the salt master or to masterless mi
89106
90107### 1.4.2. vm defaults
91108
109+ ### multipass
92110type | default
93111-----|--------
94112cpu | 2
95113memory | 1 (GB)
96114disk | 3 (GB)
97115
116+ ### gcp
117+ Type: e2-micro
118+
119+ type | default
120+ -----|--------
121+ cpu | 2
122+ memory | 1 (GB)
123+ disk | 10 (GB)
124+
125+
98126### 1.4.3. performance
99127some meassured times, create 4 vm's, 1 salt-master and 3 minions:
100128` samutev.sh -s "project-master project-app project-db project-web" `
101129
130+ #### multipass
102131environment | time
103132------------|------
104133vm Testcluster (4GB RAM)| 10:49 min
105134Lenovo x390 (16GB RAM)| 04:27 min
106135Lenoveo P53 (32GB RAM)| 03:31 min
136+
137+ #### gcp
138+ environment | time
139+ ------------|------
140+ not relevant| 05:38
0 commit comments