madduck / reclass

A recursive external node classifier for automation tools like Ansible, Puppet, and Salt
Other
159 stars 94 forks source link

Reclass - Salt Integration #78

Open maestropandy opened 7 years ago

maestropandy commented 7 years ago

After git clone https://github.com/madduck/reclass.git && apt-get install python setup.py,

when running

reclass-salt --pillar localhost No such directory: /usr/local/bin/nodes None

root@malai:/srv/salt# reclass-salt --pillar -b /srv/salt/ Usage: reclass [options] ( --top | --pillar NODENAME )

reclass: error: No arguments allowed

where my /etc/salt/master is

reclass: &reclass storage_type: yaml_fs inventory_base_uri: /srv/salt reclass_source_path: ~/code/reclass

ext_pillar:

  • reclass: *reclass

master_tops: reclass: *reclass

file_roots: base:

  • /srv/salt

May I know how to integrate salt with reclass, and am not able to find reclass-config.yml in my system. how to find it.

Eh1k0 commented 6 years ago

Hi. Try to provide nodename, e.g.:

reclass-salt --pillar hostname.example.com -b /srv/salt/