0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2025-04-21 16:54:38 +02:00

Add some sample proxmox files and sample pillar data to go with them

This commit is contained in:
John Carlyle-Clarke 2015-07-09 17:24:57 +01:00
parent eb3643bfbb
commit 23eb122aa9
3 changed files with 47 additions and 0 deletions

View File

@ -106,6 +106,23 @@ salt:
- IAD
- SYD
- HKG
# Configure the proxmox providers you want to use (one per cluster, normally)
proxmox_providers:
test:
user: root@pam
password: password
url: prox-test.mydomain
live:
user: root@pam
password: password
url: prox-live.mydomain
# You'll need to hand-edit your profiles, but you can insert a default root password
# from here
proxmox_profile_defaults:
default_password: somesecretpassword
reactor:
- 'deploy':
- /srv/salt/reactors/deploy.sls

View File

@ -0,0 +1,19 @@
# This file managed by Salt, do not edit by hand!!
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%}
{% if 'proxmox_profile_defaults' in cloud %}
{% set defaults = cloud.get('proxmox_profile_defaults') %}
prox-test-1:
provider: proxmox-test
image: ISO:vztmpl/debian-7.0-standard_7.0-2_i386.tar.gz
technology: openvz
host: testvm01
cpus: 2
memory: 2048
swap: 2048
disk: 5
password: {{ defaults.get('default_password', 'password') }}
ip_address: 192.168.1.100
{% endif %}

View File

@ -0,0 +1,11 @@
# This file managed by Salt, do not edit by hand!!
{% set cloud = salt['pillar.get']('salt:cloud', {}) -%}
{% for name, config in cloud.get('proxmox_providers',dict()).items() %}
proxmox-{{ name }}:
minion:
master: {{ cloud.get('master', 'salt') }}
user: {{ config.get('user', '') }}
password: {{ config.get('password', '') }}
url: {{ config.get('url', '') }}
provider: proxmox
{% endfor %}