{"id":19424609,"url":"https://github.com/fredrikaverpil/saltstack-docker","last_synced_at":"2025-04-24T16:31:26.811Z","repository":{"id":71243308,"uuid":"50995747","full_name":"fredrikaverpil/saltstack-docker","owner":"fredrikaverpil","description":"Saltstack running in CentOS 7 Docker container","archived":false,"fork":false,"pushed_at":"2017-02-11T06:50:08.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-20T12:58:21.883Z","etag":null,"topics":["docker","saltstack"],"latest_commit_sha":null,"homepage":null,"language":"SaltStack","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredrikaverpil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-03T11:38:35.000Z","updated_at":"2024-07-19T21:34:54.000Z","dependencies_parsed_at":"2023-05-18T02:00:51.516Z","dependency_job_id":null,"html_url":"https://github.com/fredrikaverpil/saltstack-docker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fsaltstack-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fsaltstack-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fsaltstack-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredrikaverpil%2Fsaltstack-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredrikaverpil","download_url":"https://codeload.github.com/fredrikaverpil/saltstack-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250663544,"owners_count":21467366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","saltstack"],"created_at":"2024-11-10T13:44:47.305Z","updated_at":"2025-04-24T16:31:26.804Z","avatar_url":"https://github.com/fredrikaverpil.png","language":"SaltStack","funding_links":[],"categories":[],"sub_categories":[],"readme":"# saltstack-docker\nSaltstack running in [CentOS 7](https://www.centos.org) [Docker](https://www.docker.com) container.\n\n### Prerequisites\n\nThis requires [Docker 1.10.0](https://github.com/docker/docker/releases) with [Compose 1.6](https://github.com/docker/compose/releases). Check your versions:\n\n    docker --version\n    docker-compose --version\n\nPlease note, you can download the [latest Docker Toolbox](https://github.com/docker/toolbox/releases) to get the latest versions.\n\n\n## Quickstart\n\nDownload:\n\n    git clone https://github.com/fredrikaverpil/saltstack-docker.git\n    cd saltstack-docker\n\n\nVerify IP address of your Docker host and edit `assets/minion/etc/salt/minion` accordingly:\n\n    docker-machine ip default\n\nPull the Docker image (see [Dockerhub repository](https://hub.docker.com/r/fredrikaverpil/saltstack/tags/) for available images):\n\n    docker pull fredrikaverpil/saltstack:2016.11.2\n\n...or build the image from scratch:\n\n    docker-compose build\n\nRun the containers (will build the Docker image if you did not pull or build in previous steps):\n\n    docker-compose up\n\nEnter the salt-master:\n\n    docker exec -it salt /bin/bash\n\nAccept key from minion (you may have to wait a minute before the minion shows up):\n\n    salt-key\n    salt-key --accept-all\n\n\n## Ping\n\nTest if all minions can be pinged:\n\n    salt '*' test.ping\n\n\n## States\n\nStates are defined in `assets/master/srv/salt` which maps to `/srv/salt` on the salt master. Right now, there's a simple setup in place where the `top.sls` file dictates the following:\n\n- all minions should be equipped with `git` (see `core.sls`)\n- all minions _running Windows_ should be equipped with `FileZilla` (see `repos/windows.sls`)\n- all minions _running RedHat (or CentOS)_ should be equipped with `net-tools` (see `repos/centos.sls`)\n\n\n### Windows specifics\n\nSet up the winrepo on the salt master:\n\n    salt-run winrepo.update_git_repos # update winrepo on salt master\n    salt-run winrepo.genrepo # compile repository cache\n    salt -G 'os:windows' pkg.refresh_db # sync repo to Windows minions\n\nCheck installed packages:\n\n    salt -G 'os:windows' pkg.list_pkgs # show installed packages on minions running Windows\n\nPlease read more here: https://docs.saltstack.com/en/latest/topics/windows/windows-package-manager.html\n\nYou can debug the minion running Windows by checking the logfile at `C:\\salt\\var\\log\\salt\\minion`.\n\n\n### Apply states\n\nApply the highstate:\n\n    salt '*' state.highstate test=true # first just test it\n    salt \"*\" state.highstate # then apply it\n\nApply a single state:\n\n    salt -G 'os:windows' state.apply repos.windows\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredrikaverpil%2Fsaltstack-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredrikaverpil%2Fsaltstack-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredrikaverpil%2Fsaltstack-docker/lists"}