Skip to content

Instantly share code, notes, and snippets.

View javierbertoli's full-sized avatar

Javier Bértoli javierbertoli

View GitHub Profile
@javierbertoli
javierbertoli / gist:255928c6e2613d86d836d71948d6c057
Created May 15, 2021 14:19
Salt error running against any of the saltstack-formulas `master` images,
Any of the formulas that use `grains[]` in the `*yaml` files fail, ie rspamd-formula or docker-formula
Ie, in the rspamd-formula, try it with
kitchen test --destroy=never default-debian-10-master-py3 --log-level=debug 2>&1|tee /tmp/output
Error:
...
[INFO ] Fetching file from saltenv 'base', ** done ** 'rspamd/osfamilymap.yaml'
[ERROR ] Rendering exception occurred
Traceback (most recent call last):
@javierbertoli
javierbertoli / kitchen.yml
Created May 14, 2019 15:48
Locales tests
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
# For help on this file's format, see https://kitchen.ci/
driver:
name: docker
use_sudo: false
privileged: true
run_command: /lib/systemd/systemd
@javierbertoli
javierbertoli / .travis.yml
Created April 23, 2019 10:42
template-formula with salted images
stages:
- test
- commitlint
- name: release
if: branch = master AND type != pull_request
sudo: required
cache: bundler
language: ruby
its(:content) { should match(/\*\/5 1,23 2-5 \* \* appuser \/srv\/app\/scripts\/generate_report/) }
its(:content) { should match(%r{*/5 1,23 2-5 * * appuser /srv/app/scripts/generate_report}) }