Public Repository

Last pushed: 2 years ago
Short Description
An image illustrating a bug when running salt inside docker on fedora:20
Full Description

To reproduce the bug:

$docker run -t -i izakmarais / test-salt-deployment-bug-f20 /bin/bash.

Then do

$salt-call state.highstate --local

==================================

Ouput:

local:

      ID: install-nginx
Function: pkg.installed
    Name: nginx
  Result: True
 Comment: Package nginx is already installed.
 Started: 12:01:25.681553
Duration: 620.038 ms
 Changes:   

      ID: run-nginx
Function: service.running
    Name: nginx
  Result: False
 Comment: State 'service.running' found in SLS 'nginx' is unavailable
 Started: 
Duration: 
 Changes:   

Summary

Succeeded: 1

Failed: 1

Total states run: 2

=================================

Dockerfile:

"
FROM fedora:20

RUN rm /etc/yum.repos.d/*

ADD fedora-local.repo /etc/yum.repos.d/
ADD fedora-local-updates.repo /etc/yum.repos.d/

RUN yum clean all && yum -y install salt-minion

ADD top.sls /srv/salt/
ADD nginx.sls /srv/salt/

"

Docker Pull Command
Owner
izakmarais

Comments (0)