Skip to content

fix(os): fixes salt, iscsi, postgres profiles #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions file_roots/install/iscsi.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
base:
'*':
{% if grains.os_family == 'Arch' %}
- users #we need iscsimake user on archlinux
{%- endif %}
- iscsi
6 changes: 1 addition & 5 deletions file_roots/install/salt.sls
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
base:
'*':
{%- if grains.os_family not in ('MacOS', 'Arch') %}
- salt.pkgrepo
{%- endif %}
- salt.minion
- salt.formulas
- salt
14 changes: 14 additions & 0 deletions pillar_roots/saltstack-formulas/iscsi.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{% if grains.os == 'Arch' %}
users: ##iscsi-formula needs this user
iscsimake:
sudouser: True
shell: /bin/bash
empty_password: True
home: /home/iscsimake
createhome: True
optional_groups:
- wheel
- root
sudo_rules:
- 'ALL=(ALL) ALL'
{% endif %}
4 changes: 3 additions & 1 deletion pillar_roots/saltstack-formulas/postgres.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ postgres:
# Set False to use distro packaged postgresql.
# Set True to use upstream postgresql.org repo for YUM/APT/ZYPP
use_upstream_repo: False
{%- if grains.os_family not in ('FreeBSD',) %}
pkgs_extra:
- postgresql-contrib
{%- endif %}

#following is used by 'remove' states.
upstream:
Expand Down Expand Up @@ -67,7 +69,7 @@ postgres:
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
{%- endif %}

{%- if grains['init'] == 'unknown' %}
{%- if 'init' in grains and grains['init'] == 'unknown' %}

# If Salt is unable to detect init system running in the scope of state run,
# probably we are trying to bake a container/VM image with PostgreSQL.
Expand Down
2 changes: 1 addition & 1 deletion salter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ developer-definitions() {
fork['uri']="https://github.com"
fork['entity']="noelmcloughlin"
fork['branch']="fixes"
fork['solutions']="salter packages-formula golang-formula postgres-formula"
fork['solutions']="salter packages-formula golang-formula postgres-formula salt-formula"
}

solution-definitions() {
Expand Down