Hello,
I have touble getting following master.d/custom setting work (multiple environments and master_tops):
autosign_file: /etc/salt/autosign.conf
ext_nodes: /usr/bin/foreman-node
- puppet: /usr/bin/foreman-node
output from foreman-node (which supplies "master_tops") e.g.
---
classes:
- base_pkgs
- hosts
parameters:
puppetmaster: ''
domainname: domain
foreman_domain_description: home
root_pw: "$pass"
owner_name: Admin User
owner_email: root@domain
foreman_subnets:
- name: domain
network: xxx
mask: 255.255.255.0
gateway: xxx
dns_primary: ''
dns_secondary: ''
from: ''
to: ''
boot_mode: DHCP
ipam: None
vlanid: ''
network_type: IPv4
foreman_interfaces:
- ip: some_ip
mac: some_mac
attrs: {}
virtual: false
link: true
identifier: eth0
managed: true
primary: true
provision: true
subnet:
name: domain
network: xxxx
mask: 255.255.255.0
gateway: xxxx
dns_primary: ''
dns_secondary: ''
from: ''
to: ''
boot_mode: DHCP
ipam: None
vlanid: ''
network_type: IPv4
subnet6:
tag:
attached_to:
type: Interface
install-disk: "/dev/sda"
salt_master: some_master
environment: base
What I expect to see after salt 'host' state.show_top are states limited by master_tops? In this case only:
from base environment. Whereas I see all the states from all environments.
Running state.apply also runs all the states from all the environments. Which is not what I expect.
I expect it to run only base_pkgs and hosts.
My top files:
base/top.sls
'not G@biosversion:VirtualBox':
Running salt 2016.3.3
Is there any mistake? Basically I want to run only states returned from foreman-node (and from environment returned by foreman-node)
Thank you in advance.