mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-02-21 22:18:02 +01:00
Merge 9da6cd408a77974ac9ba4e142ed69c2c5b7b3d43 into ad009a68e342599c826c64a24abbfdd4541e7714
This commit is contained in:
commit
ddc20041f1
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install python-software-properties pkg-config software-properties-common -y
|
||||
sudo add-apt-repository ppa:saltstack/salt -y
|
||||
echo 'deb http://repo.saltstack.com/apt/ubuntu/ubuntu14 trusty main' | sudo tee /etc/apt/sources.list.d/saltstack.list
|
||||
wget -O - https://repo.saltstack.com/apt/ubuntu/ubuntu14/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install salt-master -y
|
||||
sudo apt-get install salt-minion -y
|
||||
# setup top files to test the formula
|
||||
|
||||
@ -1,3 +1,16 @@
|
||||
drop-saltstack-pkgrepo:
|
||||
drop-legacy-saltstack-pkgrepo:
|
||||
pkgrepo.absent:
|
||||
- ppa: saltstack/salt
|
||||
|
||||
drop-saltstack-pkgrepo:
|
||||
pkgrepo.absent:
|
||||
{% if grains['osrelease'] == '14.04' %}
|
||||
- dist: trusty
|
||||
- key_url: https://repo.saltstack.com/apt/ubuntu/ubuntu14/SALTSTACK-GPG-KEY.pub
|
||||
- name: deb http://repo.saltstack.com/apt/ubuntu/ubuntu14 trusty main
|
||||
{% elif grains['osrelease'] == '12.04' %}
|
||||
- dist: precise
|
||||
- key_url: https://repo.saltstack.com/apt/ubuntu/ubuntu12/SALTSTACK-GPG-KEY.pub
|
||||
- name: deb http://repo.saltstack.com/apt/ubuntu/ubuntu12 precise main
|
||||
{% endif %}
|
||||
- file: /etc/apt/sources.list.d/saltstack.list
|
||||
@ -1,3 +1,16 @@
|
||||
legacy-saltstack-pkgrepo:
|
||||
pkgrepo.absent:
|
||||
- ppa: saltstack/salt
|
||||
|
||||
saltstack-pkgrepo:
|
||||
pkgrepo.managed:
|
||||
- ppa: saltstack/salt
|
||||
{% if grains['osrelease'] == '14.04' %}
|
||||
- dist: trusty
|
||||
- key_url: https://repo.saltstack.com/apt/ubuntu/ubuntu14/SALTSTACK-GPG-KEY.pub
|
||||
- name: deb http://repo.saltstack.com/apt/ubuntu/ubuntu14 trusty main
|
||||
{% elif grains['osrelease'] == '12.04' %}
|
||||
- dist: precise
|
||||
- key_url: https://repo.saltstack.com/apt/ubuntu/ubuntu12/SALTSTACK-GPG-KEY.pub
|
||||
- name: deb http://repo.saltstack.com/apt/ubuntu/ubuntu12 precise main
|
||||
{% endif %}
|
||||
- file: /etc/apt/sources.list.d/saltstack.list
|
||||
Loading…
x
Reference in New Issue
Block a user