Add additional packages and config for container
This commit is contained in:
parent
fa03f07380
commit
5de8818efb
@ -23,5 +23,8 @@ RUN ansible-playbook -v -i "localhost," -c local /celery.yaml --tags install
|
|||||||
RUN pip install riak peewee
|
RUN pip install riak peewee
|
||||||
RUN pip install -U setuptools>=17.1
|
RUN pip install -U setuptools>=17.1
|
||||||
RUN pip install -U python-fuelclient
|
RUN pip install -U python-fuelclient
|
||||||
|
RUN apt-get install -y puppet
|
||||||
|
RUN gem install hiera
|
||||||
|
RUN mkdir -p /etc/puppet/hieradata/
|
||||||
|
|
||||||
CMD ["/run.sh"]
|
CMD ["/run.sh"]
|
||||||
|
@ -21,7 +21,8 @@ solar:
|
|||||||
|
|
||||||
# docker run --name solar -d -v /root/solar/solar:/solar -v /root/solar/solard:/solard -v /root/solar/templates:/vagrant/templates \
|
# docker run --name solar -d -v /root/solar/solar:/solar -v /root/solar/solard:/solard -v /root/solar/templates:/vagrant/templates \
|
||||||
# -v /root/solar/resources:/vagrant/resources -v /root/solar/f2s:/vagrant/f2s \
|
# -v /root/solar/resources:/vagrant/resources -v /root/solar/f2s:/vagrant/f2s \
|
||||||
# -v /var/lib/fuel:/var/lib/fuel -v /root/.config/fuel/fuel_client.yaml:/root/.config/fuel/fuel_client.yaml \
|
# -v /var/lib/fuel:/var/lib/fuel -v /root/.config/fuel/fuel_client.yaml:/etc/fuel/client/config.yaml -v /etc/puppet/modules:/etc/puppet/modules \
|
||||||
|
# -v /root/.ssh:/root/.ssh \
|
||||||
# --link=riak:riak --link=redis:redis --name solar solarproject/solar-celery:f2s
|
# --link=riak:riak --link=redis:redis --name solar solarproject/solar-celery:f2s
|
||||||
|
|
||||||
riak:
|
riak:
|
||||||
|
@ -10,4 +10,4 @@ ARGS = json.loads(sys.stdin.read())
|
|||||||
env = Environment(ARGS['env'])
|
env = Environment(ARGS['env'])
|
||||||
facts = env.get_default_facts('deployment', [ARGS['uid']])
|
facts = env.get_default_facts('deployment', [ARGS['uid']])
|
||||||
|
|
||||||
sys.stdout.write(json.dumps(facts))
|
sys.stdout.write(json.dumps(facts[0]))
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
notice('MODULAR: globals.pp')
|
notice('MODULAR: globals.pp')
|
||||||
|
|
||||||
$service_token_off = false
|
$service_token_off = false
|
||||||
|
$identity = hiera('uid')
|
||||||
$globals_yaml_file = "/etc/puppet/${uid}globals.yaml"
|
$globals_yaml_file = "/etc/puppet/${identity}globals.yaml"
|
||||||
|
|
||||||
# remove cached globals values before anything else
|
# remove cached globals values before anything else
|
||||||
remove_file($globals_yaml_file)
|
remove_file($globals_yaml_file)
|
||||||
|
@ -47,6 +47,7 @@ def collect_results():
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
prepare_hiera()
|
prepare_hiera()
|
||||||
|
run_command()
|
||||||
rst = collect_results()
|
rst = collect_results()
|
||||||
sys.stdout.write(json.dumps(rst))
|
sys.stdout.write(json.dumps(rst))
|
||||||
|
|
||||||
|
@ -4,9 +4,11 @@ resources:
|
|||||||
from: resources/transport_ssh
|
from: resources/transport_ssh
|
||||||
values:
|
values:
|
||||||
ssh_user: 'root'
|
ssh_user: 'root'
|
||||||
|
ssh_key: '/root/.ssh/id_rsa'
|
||||||
- id: transports{{index}}
|
- id: transports{{index}}
|
||||||
from: resources/transports
|
from: resources/transports
|
||||||
values:
|
values:
|
||||||
|
transports:key: ssh_transport{{index}}::ssh_key
|
||||||
transports:user: ssh_transport{{index}}::ssh_user
|
transports:user: ssh_transport{{index}}::ssh_user
|
||||||
transports:port: ssh_transport{{index}}::ssh_port
|
transports:port: ssh_transport{{index}}::ssh_port
|
||||||
transports:name: ssh_transport{{index}}::name
|
transports:name: ssh_transport{{index}}::name
|
||||||
|
2
run.sh
2
run.sh
@ -6,6 +6,6 @@ if [ -d /solar ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
#used only to start celery on docker
|
#used only to start celery on docker
|
||||||
ansible-playbook -v -i "localhost," -c local /celery.yaml --skip-tags slave
|
ansible-playbook -v -i "localhost," -c local /celery.yaml --skip-tags slave,stop
|
||||||
|
|
||||||
tail -f /var/run/celery/*.log
|
tail -f /var/run/celery/*.log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user