Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update state files for Salt best practices #96

Merged
merged 10 commits into from Sep 22, 2015

Commits on Sep 22, 2015

  1. Move state files into respective folders.

    Take advantage of the init.sls convention to clean up top level folder.
    aneeshusa committed Sep 22, 2015
  2. Remove empty state file.

    aneeshusa committed Sep 22, 2015
  3. Reduce redundancy in the common state file with jinja.

    Factor out common subexpressions based on system type.
    aneeshusa committed Sep 22, 2015
  4. Use jinja loops to remove more redundancy in the common state file.

    Combine similar states with templating. Ideally, the variable data
    (hostnames, ips, usernames) - the 'hosts' and 'ssh_users' fields -
    would be used via pillar to allow changing the state file less often.
    aneeshusa committed Sep 22, 2015
  5. Consolidate states for conciseness and speed.

    The pkgs parameter in particular provides a speed
    boost by installing all pkgs in one transaction.
    aneeshusa committed Sep 22, 2015
  6. Do a bit of linting on other state files.

    Reuse conditional logic and configuration from other places,
    clean up unused code/duplicated functionality,
    and standardize a bit of formatting.
    
    Eliminate any traces of previous misspellings.
    aneeshusa committed Sep 22, 2015
  7. Fix syntax mistakes.

    aneeshusa committed Sep 22, 2015
  8. Fix another syntax mistake.

    aneeshusa committed Sep 22, 2015
  9. Combine a few more states together.

    Also fix jinja templating import error.
    aneeshusa committed Sep 22, 2015
You can’t perform that action at this time.