GithubHelp home page GithubHelp logo

doubletwist13 / template-formula Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saltstack-formulas/template-formula

0.0 0.0 0.0 1.07 MB

SaltStack formula template filled with dummy content

Home Page: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html

License: Other

SaltStack 12.48% Ruby 20.43% JavaScript 8.67% Shell 11.02% Jinja 47.40%

template-formula's People

Contributors

aboe76 avatar alxwr avatar andygabby avatar baby-gnu avatar dafyddj avatar daks avatar doubletwist13 avatar duk3luk3 avatar gmazrael avatar gravyboat avatar javierbertoli avatar johnkeates avatar jokipii avatar k-hamza avatar myii avatar n-rodriguez avatar nmadhok avatar noelmcloughlin avatar puneetk avatar semantic-release-bot avatar sroegner avatar stasjok avatar vutny avatar whiteinge avatar wwentland avatar

template-formula's Issues

[feature] Add a check for 'enable' to prevent formula from being applied to the wrong hosts

While some formulas are designed to be applied to ALL minions, some are only meant to be deployed to a certain subset of minions, for example an apache-formula shouldn't ever need to run on a server that isn't a web server, or on a server that is using nginx.

So we need to add an 'enable' parameter/pillar.

Default Formula to apply to all systems

To make a formula default to apply to all systems we can set:
parameters/default.yaml

values: 
  enable: True

Then for any minions that are an exception we can set pillar:

TEMPLATE:
  lookup:
    enabled: False

Default Formula to NOT apply to all systems

On the other hand to make a formula default to not apply unless needed by a role we can set:
parameters/default.yaml

values: 
  enable: False

Then for any minions that are an exception we can set pillar:

TEMPLATE:
  lookup:
    enabled: True

Why?

This allows us to more safely run ad-hoc commands from the CLI and helps protect us from doing something stupid like:
salt -C 'somenonapacheminion' state.apply apache

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.