Skip to content

Commit

Permalink
feat(integration): update ceph release-name & packages
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmcloughlin committed Jul 1, 2019
1 parent 96e275a commit 2db3acc
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
7 changes: 4 additions & 3 deletions deepsea/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ deepsea:
dev_env: True

packages:
# Should this formula manage package dependencies? True means yes; False NO.
# Ideally `DeepSea` (or `packages-formula`) should handle package dependencies.
# should formula manage package dependencies? True means yes; False NO.
# ideally `DeepSea` (or `packages-formula`) handle package dependencies.
managed: False
required:
- python-setuptools
- python3
- python3-boto
- python3-rados
- lsscsi
- jq
- jq # needs epel on centos
- pciutils
- salt-api
- git
Expand Down
13 changes: 8 additions & 5 deletions deepsea/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ deepsea-directories:
- user
- group
- mode
- require_in:
- file: deepsea-software

deepsea-software:
{% if deepsea.use_upstream_pkgrepo %}
{# using upstream pkgrepo #}
pkgrepo.managed:
- name: deepsea-{{ deepsea.release }}
- humanname: {{ deepsea.repo.name }}
Expand All @@ -37,11 +38,12 @@ deepsea-software:
- require:
- file: deepsea-directories
pkg.installed:
- pkgs: {{ deepsea.packages.required }}
- require:
- pkgrepo: deepsea-software
- name: deepsea

{% else %}
{# using gitrepo not upstream pkgrepo #}

pkg.installed:
- name: make
pkgrepo.absent:
- name: deepsea-{{ deepsea.release }}
- require_in:
Expand All @@ -66,6 +68,7 @@ deepsea-software:
{% endif %}
- require:
- file: deepsea-directories
- pkg: deepsea-software
- pkgrepo: deepsea-software
- require_in:
- file: deepsea-config-global
8 changes: 7 additions & 1 deletion deepsea/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ Suse:
- gptfdisk
- iperf
- lsof
- python3-setuptools
- python3-click
- python3-tox
- python3-configobj

Debian:
packages:
required:
- gdisk
- iperf
- python-tox

RedHat:
services:
Expand All @@ -35,11 +40,12 @@ RedHat:
- salt-minion
packages:
required:
- python-setuptools
- python-configobj
- python-click
- python-tox
- python-netaddr
- iperf3
- gdisk
- lshw
- hwinfo

4 changes: 0 additions & 4 deletions deepsea/packages.sls
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@

{% from "deepsea/map.jinja" import deepsea with context -%}

{% if deepsea.packages.managed %}

deepsea-packages-common-dependencies:
pkg.installed:
- pkgs:
- make
{% for pkg in deepsea.packages.required %}
- {{ pkg }}
{% endfor %}

{% endif %}
10 changes: 7 additions & 3 deletions pillar.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
deepsea:
release: luminous
# clone software from git (default)
release: nautilus
# clone software from git (default: True)
use_upstream_gitrepo: True
# or use a package repo (default: False)
use_upstream_pkgrepo: False
dev_env: False

Expand All @@ -14,5 +15,8 @@ deepsea:
dev_env: False

packages:
# Set True if https://github.com/saltstack-formulas/packages-formula is used/preferred
# Manage dependency packages with https://github.com/saltstack-formulas/packages-formula
formula: False
# Manage packages with this formula
managed: True
required: []

0 comments on commit 2db3acc

Please sign in to comment.