The Foreman Smart Proxy w/ Chef Plugin - Built for Multi-Org Setups
178
Dockerized Foreman Smart Proxy for Multiple Chef Organizations
This container requires a few items to run appropriately
Note: Example shows pivotal, if no ORG_CLIENT passed the client name defaults to pivotal Note: Don't change the org.pem, this is the key name set in the settings.yml.
docker run \
-e FOREMAN_URL='https://foreman.change_domain.com' \
-e CHEF_URL='https://chef.change_domain.com' \
-e CHEF_ORG='change_myorg' \
-p 8000:8000 \
-v /path/to/pivotal.pem:/usr/src/proxy/chef/org.pem \
-d hearstat/chef-smart-proxy
To set to a specific client and a non-pivotal setups Note: Don't change the org.pem, this is the key name set in the settings.yml.
docker run \
-e FOREMAN_URL='https://foreman.change_domain.com' \
-e CHEF_URL='https://chef.change_domain.com' \
-e CHEF_ORG='change_myorg' \
-e ORG_CLIENT='change_myclient' \
-p 8000:8000 \
-v /path/to/change_myclient.pem:/usr/src/proxy/chef/org.pem \
-d hearstat/chef-smart-proxy
proxy:
image: hearstat/chef-smart-proxy
command: proxy_start
environment:
- FOREMAN_URL='https://foreman.domain.com'
- CHEF_URL='https://foreman.domain.com'
- CHEF_ORG='https://foreman.domain.com'
- ORG_CLIENT='myclient'
volumes:
- /path/to/myclient.pem:/usr/src/proxy/chef/org.pem
ports:
- 8000:8000
proxy:
build: .
command: proxy_start
environment:
- FOREMAN_URL='https://foreman.domain.com'
- CHEF_URL='https://foreman.domain.com'
- CHEF_ORG='https://foreman.domain.com'
- ORG_CLIENT='myclient'
volumes:
- /path/to/myclient.pem:/usr/src/proxy/chef/org.pem
ports:
- 8000:8000
docker service create --name org-foreman-proxy \
--publish 8000:8000 \
-e FOREMAN_URL='https://foreman.change_domain.com' \
-e CHEF_URL='https://chef.change_domain.com' \
-e CHEF_ORG='change_myorg' \
-e ORG_CLIENT='change_myclient' \
--mount type=bind,source=/path/to/myclient.pem,destination=/usr/src/proxy/chef/org.pem \
hearstat/chef-smart-proxy
This template will setup a fully autoscaled Docker Swarm in AWS
Projects by Hearst Automation Team that use this Image
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
A lot of this project functionality is due to https://github.com/shlomizadok/foreman-docker-compose
MIT License
Copyright (c) 2017 Hearst Automation Team
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Content type
Image
Digest
Size
67.5 MB
Last updated
over 9 years ago
docker pull hearstat/chef-smart-proxy:dev