Skip to content

Instantly share code, notes, and snippets.

@kaidokert
Created January 25, 2016 06:41
Show Gist options
  • Select an option

  • Save kaidokert/c9875d5346c7d9cd0d5e to your computer and use it in GitHub Desktop.

Select an option

Save kaidokert/c9875d5346c7d9cd0d5e to your computer and use it in GitHub Desktop.
Salt minion install from official repos, migrating from PPA
{% set ver_str = [grains.os|lower,grains.osrelease,grains.osarch]|join('/') %}
{% set release = latest %} {# currently 2015.8 #}
{% set release = 2015.5 %}
salt_repo:
pkgrepo.managed:
- humanname: salt-repo
- name: "deb http://repo.saltstack.com/apt/{{ ver_str }}/{{ release }} {{ grains.oscodename }} main"
- file: /etc/apt/sources.list.d/salt.list
- keyid: DE57BFBE
- keyserver: keyserver.ubuntu.com
salt_minion_installed:
pkg.installed:
- name: salt-minion
- version: 2015.5.9+ds-1
- refresh: True
- only_upgrade: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment