Skip to content
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

Bump SaltStack version to 3006.7 #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![Kitchen (Linux)](https://github.com/opensourcewebsite-org/osw-devops/actions/workflows/kitchen.yml/badge.svg)](https://github.com/opensourcewebsite-org/osw-devops/actions/workflows/kitchen.yml)

[![License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![SaltStack Version](https://img.shields.io/badge/SaltStack-3006.1-blue.svg?style=flat-square)](https://saltproject.io)
[![SaltStack Version](https://img.shields.io/badge/SaltStack-3006.7-blue.svg?style=flat-square)](https://saltproject.io)

Server Architecture for OpenSourceWebsite, using [SaltStack](https://saltproject.io).

Expand Down
4 changes: 2 additions & 2 deletions pillar/prod/salt.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ salt:
master_remove_config: false
install_packages: true
py_ver: 'py3'
version: 3006.1
release: '3006.1'
version: 3006.7
release: '3006.7'
lookup:
salt_master: 'salt-master'
salt_minion: 'salt-minion'
Expand Down
4 changes: 2 additions & 2 deletions pillar/salt.sls
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ salt:
master_remove_config: false
install_packages: true
py_ver: 'py3'
version: 3006.1
release: '3006.1'
version: 3006.7
release: '3006.7'
lookup:
salt_minion: 'salt-minion'
minion:
Expand Down
39 changes: 10 additions & 29 deletions salt/exim.sls
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ debconf-utils:
pkg.installed:
- order: 1

exim_packages:
exim4:
pkg.installed:
- pkgs:
- exim4
- require:
- debconf: exim4_config
- order: 2
service.running:
- enable: True
- watch:
- file: /etc/exim4/*

exim4_setup:
exim4_config:
debconf.set:
- name: exim4_config
- data:
'exim4/mailname': {'type': 'string', 'value': {{ grains['localhost'] }} }
'exim4/dc_localdelivery': {'type': 'select', 'value': 'mbox format in /var/mail/'}
Expand All @@ -24,14 +25,7 @@ exim4_setup:
- require:
- pkg: debconf-utils

exim4_service:
service.running:
- name: exim4
- enable: True
- watch:
- file: /etc/exim4/*

create_dir_dkim:
/etc/exim4/dkim:
file.directory:
- name: /etc/exim4/dkim
- makedirs: True
Expand All @@ -55,16 +49,6 @@ generate_public_cert:
- cwd: /etc/exim4/dkim/
- creates: /etc/exim4/dkim/{{ pillar['dkim_public_key'] }}

chown_dkim:
file.directory:
- name: /etc/exim4/dkim
- makedirs: True
- user: Debian-exim
- group: Debian-exim
- recurse:
- user
- group

exim4_dkim:
file.blockreplace:
- name: /etc/exim4/exim4.conf.template
Expand All @@ -84,14 +68,12 @@ exim4_config_localmail:
- content: 'domainlist local_domains = localhost : localhost.localdomain'
- match: 'domainlist local_domains = MAIN_LOCAL_DOMAINS'

exim4_config_localmacros:
/etc/exim4/exim4.conf.localmacros:
file.managed:
- name: /etc/exim4/exim4.conf.localmacros
- contents: 'MAIN_TLS_ENABLE = 1'

exim4_conf:
/etc/exim4/update-exim4.conf.conf:
file.managed:
- name: /etc/exim4/update-exim4.conf.conf
- contents: |
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
Expand All @@ -107,9 +89,8 @@ exim4_conf:
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

exim4_passwd_client:
/etc/exim4/passwd.client:
file.managed:
- name: /etc/exim4/passwd.client
- user: root
- group: Debian-exim
- mode: 640
Expand Down
Loading