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

Pillar data is being ignored #30

Closed
rahedges opened this issue Mar 17, 2016 · 6 comments
Closed

Pillar data is being ignored #30

rahedges opened this issue Mar 17, 2016 · 6 comments

Comments

@rahedges
Copy link

I have a top.sls file:

base:
  '*':
    - sudoers

And as a test I have a pillar file in /srv/salt/pillar/sudoers/init.sls

sudoers:
  users:
    johndoe:
      - 'All=(ALL) ALL'

When I run the highstate I see this output:

pbp:
----------
          ID: sudo
    Function: pkg.installed
      Result: True
     Comment: Package sudo is already installed
     Started: 14:48:45.512514
    Duration: 441.472 ms
     Changes:   
----------
          ID: /etc/sudoers
    Function: file.managed
      Result: True
     Comment: The file /etc/sudoers is in the correct state
     Started: 14:48:45.955057
    Duration: 46.428 ms
     Changes:   

Summary
------------
Succeeded: 2
Failed:    0
------------
Total states run:     2

On my minion it shows a sudoes file that is managed by salt, but it does not have the additional users in my pillar data. I realize this is may be a fundamental error, but I've tried several things and can't seem to get the pillar data included.

Thanks,
Robert

@gravyboat
Copy link
Contributor

I assume: johndoe; with the semicolon instead of the colon is just a typo specifically in this issue? As is the missing ' in - 'All=(ALL) ALL?

@iggy
Copy link
Contributor

iggy commented Mar 18, 2016

salt 'host' pillar.get sudoers

@rahedges
Copy link
Author

When I run the comand:

sudo salt 'pbp' pillar.get sudoers

the response is:

pbp:

And then if i run

sudo salt 'pbp' pillar.items

The response is:

pbp:
    ----------

Also the /etc/sudoers file is unchanged.

@iggy
Copy link
Contributor

iggy commented Mar 19, 2016

Your host isn't getting pillars, why it's not could be any different reason.

@bradthurber
Copy link

@djibi2, by any chance are you using jinja2 v2.2.1 as in issue #6 ? If so, you may want to try the workaround from the comment made by jcross-linkup.

@rahedges
Copy link
Author

rahedges commented Apr 8, 2016

There was a configuration issue with my general setup that was preventing me from seeing the pillar data. It had nothing to do with this formula.

@rahedges rahedges closed this as completed Apr 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants