Skip to content

Instantly share code, notes, and snippets.

ant:
archive:
- extracted
- name: /tmp/test
- source: salt://apache-ant-1.8.2-bin.tar.gz
- archive_format: tar
- tar_options: z
{% macro namemapping() -%}
{% set ic_hadoop14 = '3415b687-b98d-4140-97f9-b8a733edb658' %}
{%- endmacro %}
{% from 'prettynames.sls' import namemapping with context %}
{% set roles = {
'compute': [ namemapping.ic_hadoop14,'ic-hadoop15.obt.mgmt','ic-hadoop15.obt.mgmt','ic-hadoop16.obt.mgmt','ic-hadoop17.ob\
t.mgmt'],
'controller': [ 'ic-hadoop14.obt.mgmt' ],
'None': ['ic-hadoop13.obt.mgmt']
}
%}
1.install_apache:
2. pkg:
3. - installed
4. - name: httpd
5.start_apache:
6. service:
7. - running
8. - name: httpd
9. - require:
10. - pkg:
install_apache:
pkg:
- installed
- name: httpd
start_apache:
service:
- running
- name: httpd
- require:
- pkg:
No need to update translations. Skipping...
sphinx-build -b html -d _build/doctrees . _build/html
Making output directory...
Running Sphinx v1.0.8
loading translations [en]... locale not available
loading pickled environment... not yet created
[autosummary] generating autosummary for: contents.rst, faq.rst, glossary.rst, index.rst, ref/auth/all/index.rst, ref/auth/all/salt.auth.auto.rst, ref/auth/all/salt.auth.keystone.rst, ref/auth/all/salt.auth.ldap.rst, ref/auth/all/salt.auth.pam.rst, ref/auth/all/salt.auth.pki.rst, ..., topics/tutorials/walkthrough.rst, topics/tutorials/walkthrough_macosx.rst, topics/tutorials/writing_tests.rst, topics/virt/disk.rst, topics/virt/index.rst, topics/virt/nic.rst, topics/windows/index.rst, topics/windows/windows-package-manager.rst, topics/windows/windows-specific-behaviour.rst, topics/yaml/index.rst
Exception occurred:
File "/usr/lib/python2.6/site-packages/Sphinx-1.0.8-py2.6.egg/sphinx/ext/autosummary/__init__.py", line 411, in _import_by_name
{% from 'namemap.sls' import namemap with context %}
{% set roles = {
'performance_cdh': [namemap.node68,namemap.node69,namemap.node70,
namemap.node71,namemap.node72,namemap.node73,namemap.node74,namemap.node75],
'network': [namemap.node2] }
%}
roles:
{% for role, items in roles.items() %}
{% for role in salt['pillar.get']('roles') %}
{% if role != 'base' %}
include:
- {{ role }}
{% endif %}
{% endfor %}
[cluster]
name=cluster384
total_nodes=3
cdh_manager=10.0.40.115
cm_hostname=autocdh-1.obt.data
cdh_login=admin
cdh_passwd=admin
services=hdfs, mapreduce, hive, hbase, zookeeper, yarn, spark, impala, solr, flume, oozie, sqoop, hue
server_rack=/default
server_hostnames=autocdh-1.obt.data, autocdh-2.obt.data, autocdh-3.obt.data, autocdh-4.obt.data
nginx-pgk:
pkg.installed:
- name: nginx
nginx-service:
service.running:
- name: nginx
- require:
- pkg: nginx-pgk