conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Make sure nginx is enabled\n" }, { "from": "human", "value": "{% if salt['pillar.get']('cdh5:landing_page', True) %}\n\n# Install nginx\nwebserver:\n pkg:\n - installed\n - name: nginx\n service:\n - running\n - name: nginx\n - require:\n - pkg...
saltstack
chosen
[ { "from": "human", "value": "Add test for availability of NTP server\n" }, { "from": "gpt", "value": "# Test availability of time servers.\n\n{% if pillar['system_features']['time_configuration']['use_time_server_role'] %} # use_time_server_role\n\n{% if grains['id'] in pillar['system_host_roles...
saltstack
chosen
[ { "from": "human", "value": "Add basic NTP service installation\n" }, { "from": "gpt", "value": "# Time service (NTP).\n\n###############################################################################\n# <<<\n{% if grains['os_platform_type'].startswith('rhel') or grains['os_platform_type'].star...
saltstack
chosen
[ { "from": "human", "value": "Add draft for deploying syncthing\n" }, { "from": "gpt", "value": "# Deploy syncthing service for primary user.\n\n###############################################################################\n# [[[\n{% if grains['os_platform_type'].startswith('rhel') or grains['o...
saltstack
chosen
[ { "from": "system", "value": "Salt: Make sure git is installed, for gitRepo volumes\n\nSeems to be included in the GCE base image, but not on the images we use\non AWS (Ubuntu images).\n\nFix #20957\n" }, { "from": "human", "value": "pkg-core:\n pkg.installed:\n - names:\n - curl\n{% if...
saltstack
chosen
[ { "from": "human", "value": "Add lib to access URI of registered content item\n\nChange pillar data structure accordingly.\n" }, { "from": "gpt", "value": "# Set of macros to work with resources.\n\n###############################################################################\n\n{%- macro get_...
saltstack
chosen
[ { "from": "human", "value": "Add zsh shell and oh-my-zsh\n" }, { "from": "gpt", "value": "include:\n - {{ pillar['username'] }} \n \nzshgit:\n git.latest:\n - name: git://github.com/robbyrussell/oh-my-zsh.git\n - target: /home/{{ pillar['username'] }}/.oh-my-zsh\n - force: true\n ...
saltstack
chosen
[ { "from": "human", "value": "Add sls for non recurse test\n" }, { "from": "gpt", "value": "snmpd:\n pkg:\n - installed\n service:\n - running\n - require:\n - pkg: snmpd\n - watch:\n - file: /etc/snmp/snmpd.conf\n\n/etc/snmp/snmpd.conf:\n file:\n - managed\n - sour...
saltstack
chosen
[ { "from": "human", "value": "Add entry to /etc/hosts to point the lms DNS name to localhost to avoid routing traffic intended to the localhost all the way back out to ELB\n" }, { "from": "gpt", "value": "#!jinja|yaml\n\n{% set lms_site_name = salt.pillar.get('edx:ansible_vars:EDXAPP_LMS_SITE_NAM...
saltstack
chosen
[ { "from": "human", "value": "Add initialisation state for single node setup\n\nCouchDB does not initiate system databases on startup. State\ncouchdb2.single_node_init should take care of that. More info:\nhttp://docs.couchdb.org/en/2.0.0/install/index.html#single-node-setup\n\nSigned-off-by: Michal Kuffa <0...
saltstack
chosen
[ { "from": "human", "value": "Add state for Kapacitor installation\n" }, { "from": "gpt", "value": "kapacitor:\n pkg.installed:\n - sources:\n - influxdb: https://dl.influxdata.com/kapacitor/releases/kapacitor-1.3.1.x86_64.rpm\n service.running:\n - require:\n - pkg: kapacitor" ...
saltstack
chosen
[ { "from": "human", "value": "Add SSH tests account state file\n" }, { "from": "gpt", "value": "{%- if grains['os'] == 'Ubuntu' %}\n {% set ssh_service = 'ssh' %}\n{%- else %}\n {% set ssh_service = 'sshd' %}\n{%- endif %}\n\ntests_pubkey_root:\n ssh_auth:\n - present\n - user: root\n ...
saltstack
chosen
[ { "from": "human", "value": "Add simple mysql server state\n\nThis includes installing database based on the data in pillars, which\nshould generally look like this:\n\nmysql:\n dbname:\n username: foo\n password: bar\n host: localhost\n" }, { "from": "gpt", "value": "mysql-server-5.7:...
saltstack
chosen
[ { "from": "human", "value": "Add an ssl state to manage cert permissions\n" }, { "from": "gpt", "value": "# Copyright 2012-2013 Hewlett-Packard Development Company, L.P.\n# All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# not use this ...
saltstack
chosen
[ { "from": "human", "value": "Add the salt-testing state files\n" }, { "from": "gpt", "value": "include:\n - pkgs.python.pip\n {%- if salt['config.get']('virtualenv_name', None) %}\n - projects.virtualenv\n {%- endif %}\n - pkgs.python.salttesting\n\ninstall_pylint:\n pip.installed:\n -...
saltstack
chosen
[ { "from": "human", "value": "Prepare a virtualenv for salt-cloud based test runs\n" }, { "from": "gpt", "value": "include:\n - pkgs.system.pip\n {%- if salt['config.get']('virtualenv_path', None) %}\n - projects.salt.virtualenv\n {%- endif %}\n - pkgs.python.salttesting\n - pkgs.python.re...
saltstack
chosen
[ { "from": "human", "value": "Add dummy states to show hosts required online\n" }, { "from": "gpt", "value": "# Handy dummy state which lists hosts required online.\n\n{% from 'common/libs/host_config_queries.sls' import is_network_checks_allowed with context %}\n\n{% set all_defined_host_ids = p...
saltstack
chosen