Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias Import alias Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore SubscriptLoad Call Call AttributeLoad NameLoad attr Str Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str Str ListLoad Str ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str NameLoad Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str NameLoad Return NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Str Assign NameStore Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call Call AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list With Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str keyword Dict Str Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str ListLoad Str Str Str Str Call NameLoad ListLoad TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str Str TupleLoad Str ListLoad Str Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Call NameLoad ListLoad TupleLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Call NameLoad ListLoad TupleLoad Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str ListLoad Str Str Str Str Str Call NameLoad ListLoad TupleLoad Str ListLoad Str Str Str Str Call NameLoad ListLoad TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str TupleLoad Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Dict Str Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore ListLoad Str Str Str Str body Expr Call AttributeLoad NameLoad attr Call Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad ListLoad ListLoad ListLoad Str ListLoad Str Str ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIn NameLoad ListLoad Str Str Str body Return Call AttributeLoad Dict Str ListLoad Str Str attr NameLoad Dict If CompareIn NameLoad ListLoad Str Str Str Str Str Str Str body Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list Assign NameStore Dict Str Str Str Str Str Str Str NameLoad NameLoad Str Str ListLoad Dict Str Str Str Str Str Str ListLoad Dict Str Str ListLoad Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str Dict Str Str With Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str keyword Dict Str Dict Str Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad ListLoad Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIn NameLoad ListLoad Str Str Str Str Str Str body Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Call NameLoad keyword NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Dict Str Str NameLoad Str Str NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Num Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str NameLoad Str Str NameLoad Str NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str NameLoad Num Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIn NameLoad ListLoad Str Str Str Str Str body Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Dict Str Str Str Str Str Str Dict Str Str Str Str Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Dict Str Str Dict Str Str Str Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str Expr Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIn NameLoad ListLoad Str Str Str Str body Return Dict Str Str Dict ListLoad Str Str If CompareIn NameLoad ListLoad Str Str Str Str body Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list With Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str keyword Dict Str Dict Str Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareIn NameLoad ListLoad Str Str Str Str body Return Dict Str Str Dict ListLoad Str Str If CompareIn NameLoad ListLoad Str Str Str Str body Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list With Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str keyword Dict Str Dict Str Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body If CompareEq NameLoad Str body Return SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Index NameLoad decorator_list With Call AttributeLoad NameLoad attr keyword ListLoad Str keyword ListLoad Str keyword Dict Str Dict Str Str Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad body Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Assign NameStore Call Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A copy collections OrderedDict N/A base mc_states.modules mc_pillar mc_states.modules mc_utils mc_states.modules mc_macros mock patch Mock N/A yaml N/A contextlib N/A __docformat__ restructuredtext en N/A TESTS N/A passwords_map ssh_groups sudoers_map keys_map sysadmins_keys_map mail_configurations configurations 
passwords_map:
  a.makina-corpus.net:
    root: uuu
    sysadmin: yyy
    zope: zzz
  b.makina-corpus.net:
    root: ttt
  c.makina-corpus.net:
    sysadmin: xxx
 
ssh_groups:
  default: [admin, root, sshusers,
            sudo, sysadmin, wheel]
  foo.makina-corpus.net: [ubuntu, git-ro, git-lab]
 
sudoers_map:
  default: [uuu]
  foo.makina-corpus.net: [sss, ttt]
 
keys_map:
  infra:
    - supervision.pub
  sss:
    - sss.pub
  ttt:
    - ttt.pub
  uuu:
    - uuu.pub
  vvv:
    - vvv.pub
 
sysadmins_keys_map:
  default: [infra, sss]
  foo.makina-corpus.net: [infra, ttt]
 
mail_configurations:
  default:
    default_dest: "sysadmin+{id}@makina-corpus.net"
    mode: relay
    auth: true
    smtp_auth:
      mail.makina-corpus.net:
        user: "foo@makina-corpus.net"
        password: bar
    transports:
      '*': mail.makina-corpus.net
    virtual_map:
      - "/root@.*/": "{dest}"
      - "/postmaster@.*/": "{dest}"
      - "/abuse@.*/": "{dest}"
      - "/.*@{id}/": "{dest}"
      - "/.*@localhost/": "{dest}"
      - "/.*@.local/": "{dest}"
  foo.makina-corpus.net:
    transports:
      '*': mail.makina-corpus.tld
 
configurations:
  foo.makina-corpus.net:
    mastersalt_master: true
    cloud_master: true
    cloud_images:
      makina-states.cloud.images.lxc.images.makina-states-precise:
        builder_ref: bar.makina-corpus.net
  default:
    mastersalt: f.makina-corpus.net
    mastersaltdn: m.makina-corpus.net
    mastersalt_port: 4606
    domain: makina-corpus.net
    mastersalt_master: false
    cloud_master: false
    manage_packages: true
    manage_mails: true
    manage_backups: true
    manage_passwords: true
    manage_ssh_groups: true
    manage_ssh_keys: true
    manage_passwords: true
    manage_sudoers: true
    manage_network: true
    manage_snmpd: true
    manage_hosts: true
    manage_shorewall: true
    manage_fail2ban: true
    manage_ntp_server: false
    backup_mode: burp
    mail_mode: relay
    default_env: prod
    ldap_client: true
 N/A TEST_NET 

non_managed_hosts:
  - o.makina-corpus.net

standalone_hosts:
  - p.makina-corpus.net

cnames:
  testc.makina-corpus.net: testb.makina-corpus.net.
  testb.makina-corpus.net: testa.makina-corpus.net.
  boo.moo: www.foo.fr.
  boo.moo: www.foo.fr.
  foo.moo: a.makina-corpus.net.
  boo.moo.makina-corpus.net: www.foo.fr.
  foo.moo.makina-corpus.net: a.makina-corpus.net.
  goo.moo.makina-corpus.net: a.makina-corpus.net.
  h.makina-corpus.net: b.makina-corpus.net.

rrs_ttls:
  b.makina-corpus.net: 3600

ips_map:
  c.makina-corpus.net: [a.makina-corpus.net]
  goo.moo.makina-corpus.net: [a.makina-corpus.net]
  ns1.makina-corpus.net: [b.makina-corpus.net]
  ns2.makina-corpus.net: [d.makina-corpus.net]
  ns3.makina-corpus.net: [h.makina-corpus.net]


ipsfo_map:
  thisfo.makina-corpus.net: [ifo-online-1.makina-corpus.net]
  a.makina-corpus.net: [ifo-online-1.makina-corpus.net]
  preprod-boo.makina-corpus.net: [ifo-online-1.makina-corpus.net]
  testd.makina-corpus.net: [ifo-online-3.makina-corpus.net]
  preprod-dd.makina-corpus.net: [ifo-online-4.makina-corpus.net]

ips:
  foo.makina-corpus.net: [1.2.3.4]
  a.makina-corpus.net: [1.2.3.5]
  b.makina-corpus.net: [1.2.3.6]
  d.makina-corpus.net: [1.2.3.8]
  e.makina-corpus.net: [1.2.3.9]
  f.makina-corpus.net: [1.2.3.10]
  projecta.makina-corpus.net: [1.2.3.10]
  projectb.makina-corpus.net: [1.2.3.10]
  testa.makina-corpus.net: [1.2.3.10]
  testd.makina-corpus.net: [1.2.3.10]

cloud_vm_attrs:
  preprod-dd.makina-corpus.net:
    domains: [sub.makina-corpus.net]

managed_dns_zones:
  - makina-corpus.com
  - makina-corpus.net
  - makina-corpus.fr
  - makina-corpus.org

ipsfo:
  ifo-online-1.makina-corpus.net: 212.129.4.3
  ifo-online-2.makina-corpus.net: 212.129.4.4
  ifo-online-3.makina-corpus.net: 212.129.4.5
  ifo-online-4.makina-corpus.net: 212.129.4.6

baremetal_hosts:
  - o.makina-corpus.net
  - p.makina-corpus.net
  - foo.makina-corpus.net
  - bar.makina-corpus.net
  - a.makina-corpus.net
  - b.makina-corpus.net
  - d.makina-corpus.net
  - e.makina-corpus.net
  - f.makina-corpus.net
  - testd.makina-corpus.net

vms:
  kvm:
    foo.makina-corpus.net:
      - preprod-goo.makina-corpus.net
  lxc:
    testd.makina-corpus.net:
      - preprod-d.makina-corpus.net
      - preprod-dd.makina-corpus.net
    foo.makina-corpus.net:
      - preprod-moo.makina-corpus.net
      - preprod-boo.makina-corpus.net

dns_serials:
  makina-corpus.net: 2014042221
  makina-corpus.com: 2013042221

dns_servers:
  default:
    master: a.makina-corpus.net
    slaves:
      - ns1: b.makina-corpus.net
      - ns2: d.makina-corpus.net
      - ns3: h.makina-corpus.net
  makina-corpus.eu:
    master: nsbar.makina-corpus.net
    slaves:
      - ns1: nsfoo.makina-corpus.net
  makina-corpus.org: {}
  makina-corpus.net:
    slaves:
      - ns1: h.makina-corpus.net
  makina-corpus.fr:
    slaves:
      - ns1: c.makina-corpus.net
      - ns2: b.makina-corpus.net
  makina-corpus.com:
    slaves:
      - ns1: b.makina-corpus.net

mx_map:
  makina-corpus.com:
    c.makina-corpus.net: {priority: 50}
  makina-corpus.net:
    c.makina-corpus.net: {priority: 50}

rrs_txt:
    - dkim._domainkey.makina-corpus.net:
        - "v=DKIM1; p=Maaa/bb+Kcc/a/fddddeee"
        - "v=DKIM2; p=Maaa/bb+Kcc/a/fddddeee"
    - makina-corpus.net: "v=DKIM1; p=MIGfMAAA/bbbb+Kscccc/CekNeee"
    - dkim._domainkey.makina-corpus.com.com: "v=DKIM1; p=aaa/bbbb+scccc/af/eee"
    - makina-corpus.com.com: "v=DKIM1; p=MIGfMAAA/bbbb+Kscccc/dz/fdddd Neee"

managed_alias_zones: {}

shorewall_overrides:
  foo.makina-corpus.net:
    no_ftp: False
    no_postgresql: False
    params.RESTRICTED_FTP: "foo"
    params.RESTRICTED_POSTGRESQL: "bar"

default_allowed_ips_names:
  default:
    - a.makina-corpus.net
    - b.makina-corpus.net

configurations:
  default:
    manage_ssh_ip_restrictions: false
  preprod-d.makina-corpus.net:
    manage_ssh_ip_restrictions: True

rrs_raw:
  makina-corpus.com:
    - |
      @ SPF "v=spf1 +mx -all"

burp_configurations:
  foo.makina-corpus.net:
    bar.makina-corpus.net:
      cross_filesystem:
        - /var
        - /home
        - /srv
      include:
        - /
 TestCase N/A N/A base ModuleCase N/A test_get_whitel N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res1 N/A N/A N/A self _ mc_pillar.whitelisted a N/A N/A N/A self assertEqual res1 N/A 1.2.3.5 1.2.3.6 N/A test_get_burp_conf N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res1 N/A N/A N/A N/A self _ mc_pillar.query burp_configurations N/A foo.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A bar.makina-corpus.net N/A include cross_filesystem N/A / N/A /var /home /srv N/A test_get_shorewallsettings N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A data N/A N/A yaml load TEST_NET N/A N/A N/A N/A data N/A configurations N/A default N/A manage_firewalld False N/A N/A N/A N/A data N/A configurations N/A default N/A manage_shorewall True N/A data N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_shorewall_settings foo.makina-corpus.net N/A res2 N/A N/A N/A self _ mc_pillar.get_shorewall_settings bar.makina-corpus.net N/A N/A N/A self assertEqual N/A res1 N/A makina-states.services.firewall.shorewall True N/A N/A N/A self assertEqual N/A res2 N/A makina-states.services.firewall.shorewall True N/A N/A N/A self assertEqual N/A res1 N/A makina-states.services.firewall.shorewall.params.RESTRICTED_POSTGRESQL bar N/A N/A N/A self assertEqual N/A res1 N/A makina-states.services.firewall.shorewall.params.RESTRICTED_FTP foo N/A k makina-states.services.firewall.shorewall.params.RESTRICTED_SSH N/A res1 N/A N/A N/A self _ mc_pillar.get_shorewall_settings preprod-dd.makina-corpus.net N/A res2 N/A N/A N/A self _ mc_pillar.get_shorewall_settings preprod-d.makina-corpus.net N/A N/A N/A self assertEqual all N/A res1 N/A k N/A N/A N/A self assertNotEqual all N/A res2 N/A k N/A test_get_arr N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res N/A N/A N/A self _ mc_pillar.rrs_a_for makina-corpus.net N/A N/A N/A self assertEqual N/A N/A res splitlines N/A N/A        a.ifo-online-1.makina-corpus.net. A 212.129.4.3
       a.makina-corpus.net. A 1.2.3.5
       b.makina-corpus.net. A 1.2.3.6
       c.makina-corpus.net. A 1.2.3.5
       d.makina-corpus.net. A 1.2.3.8
       e.makina-corpus.net. A 1.2.3.9
       f.makina-corpus.net. A 1.2.3.10
       failover.a.makina-corpus.net. A 212.129.4.3
       failover.testd.makina-corpus.net. A 212.129.4.5
       failover.thisfo.makina-corpus.net. A 212.129.4.3
       foo.makina-corpus.net. A 1.2.3.4
       goo.moo.makina-corpus.net. A 1.2.3.5
       h.makina-corpus.net. A 1.2.3.6
       ifo-online-1.a.makina-corpus.net. A 212.129.4.3
       ifo-online-1.makina-corpus.net. A 212.129.4.3
       ifo-online-1.thisfo.makina-corpus.net. A 212.129.4.3
       ifo-online-2.makina-corpus.net. A 212.129.4.4
       ifo-online-3.makina-corpus.net. A 212.129.4.5
       ifo-online-3.testd.makina-corpus.net. A 212.129.4.5
       ifo-online-4.makina-corpus.net. A 212.129.4.6
       ns1.makina-corpus.net. A 1.2.3.6
       ns2.makina-corpus.net. A 1.2.3.8
       ns3.makina-corpus.net. A 1.2.3.6
       preprod-boo.foo.ifo-online-1.makina-corpus.net. A 212.129.4.3
       preprod-boo.ifo-online-1.makina-corpus.net. A 212.129.4.3
       preprod-boo.makina-corpus.net. A 212.129.4.3
       preprod-d.makina-corpus.net. A 1.2.3.10
       preprod-dd.ifo-online-4.makina-corpus.net. A 212.129.4.6
       preprod-dd.makina-corpus.net. A 212.129.4.6
       preprod-dd.testd.ifo-online-4.makina-corpus.net. A 212.129.4.6
       preprod-goo.makina-corpus.net. A 1.2.3.4
       preprod-moo.makina-corpus.net. A 1.2.3.4
       projecta.makina-corpus.net. A 1.2.3.10
       projectb.makina-corpus.net. A 1.2.3.10
       sub.makina-corpus.net. A 212.129.4.6
       testa.makina-corpus.net. A 1.2.3.10
       testd.ifo-online-3.makina-corpus.net. A 212.129.4.5
       testd.makina-corpus.net. A 1.2.3.10
       thisfo.ifo-online-1.makina-corpus.net. A 212.129.4.3
       thisfo.makina-corpus.net. A 212.129.4.3 splitlines N/A test_get_mx_rr N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res N/A N/A N/A self _ mc_pillar.rrs_mx_for makina-corpus.com N/A N/A N/A self assertEqual res        @ IN MX 50 c.makina-corpus.net. N/A test_get_raw_rr N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res N/A N/A N/A self _ mc_pillar.rrs_raw_for makina-corpus.com N/A N/A N/A self assertEqual res        @ SPF "v=spf1 +mx -all" N/A test_get_cnames_for N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res N/A N/A N/A self _ mc_pillar.rrs_cnames_for makina-corpus.net N/A N/A N/A self assertEqual res        boo.moo.makina-corpus.net.  CNAME www.foo.fr.
       foo.moo.makina-corpus.net.  CNAME a.makina-corpus.net.
       testb.makina-corpus.net.  CNAME testa.makina-corpus.net.
       testc.makina-corpus.net.  CNAME testb.makina-corpus.net. N/A N/A N/A self assertEqual N/A N/A N/A self _ mc_pillar.ip_for testc.makina-corpus.net 1.2.3.10 N/A test_get_ns_rr N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A data N/A N/A yaml load TEST_NET N/A data N/A N/A N/A N/A self patch filtered N/A mc.* kinds N/A modules funcs N/A modules N/A mc_pillar.loaddb_do _load N/A N/A res N/A N/A N/A self _ mc_pillar.rrs_ns_for makina-corpus.net N/A N/A N/A self assertEqual res        @ IN NS ns1.makina-corpus.net. N/A res N/A N/A N/A self _ mc_pillar.rrs_ns_for makina-corpus.com N/A N/A N/A self assertEqual res        @ IN NS ns1.makina-corpus.com. N/A ip1 N/A N/A N/A self _ mc_pillar.ip_for ns1.makina-corpus.net N/A ip3 N/A N/A N/A self _ mc_pillar.ip_for ns1.makina-corpus.fr N/A ip2 N/A N/A N/A self _ mc_pillar.ip_for ns2.makina-corpus.fr N/A N/A N/A self assertEqual ip1 1.2.3.6 N/A N/A N/A self assertEqual ip2 1.2.3.6 N/A N/A N/A self assertEqual ip3 1.2.3.5 N/A test_get_txts_rr N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res N/A N/A N/A self _ mc_pillar.rrs_txt_for makina-corpus.net N/A N/A N/A self assertEqual res        dkim._domainkey.makina-corpus.net. TXT "v=DKIM1; p=Maaa/bb+Kcc/a/fddddeee"
       dkim._domainkey.makina-corpus.net. TXT "v=DKIM2; p=Maaa/bb+Kcc/a/fddddeee"
       makina-corpus.net. TXT "v=DKIM1; p=MIGfMAAA/bbbb+Kscccc/CekNeee" N/A test_get_nss N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_slaves_for a.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A all z N/A b.makina-corpus.net c.makina-corpus.net d.makina-corpus.net h.makina-corpus.net N/A OrderedDict N/A N/A makina-corpus.com N/A b.makina-corpus.net N/A makina-corpus.net N/A h.makina-corpus.net N/A makina-corpus.fr N/A c.makina-corpus.net b.makina-corpus.net N/A makina-corpus.org N/A b.makina-corpus.net d.makina-corpus.net h.makina-corpus.net N/A res1 N/A N/A N/A self _ mc_pillar.get_slaves_zones_for b.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A makina-corpus.fr makina-corpus.net makina-corpus.org makina-corpus.com a.makina-corpus.net a.makina-corpus.net a.makina-corpus.net a.makina-corpus.net N/A res1 N/A N/A N/A self _ mc_pillar.get_nss_for_zone makina-corpus.com N/A res2 N/A N/A N/A self _ mc_pillar.get_nss_for_zone makina-corpus.net N/A N/A N/A self assertEqual res1 N/A master slaves a.makina-corpus.net N/A OrderedDict N/A N/A ns1.makina-corpus.com b.makina-corpus.net N/A N/A N/A self assertEqual res2 N/A master slaves a.makina-corpus.net N/A OrderedDict N/A N/A ns1.makina-corpus.net h.makina-corpus.net N/A res N/A N/A N/A self _ mc_pillar.get_nss N/A N/A N/A self assertEqual res N/A all masters slaves N/A a.makina-corpus.net b.makina-corpus.net c.makina-corpus.net d.makina-corpus.net h.makina-corpus.net N/A OrderedDict N/A N/A a.makina-corpus.net N/A b.makina-corpus.net h.makina-corpus.net c.makina-corpus.net d.makina-corpus.net N/A OrderedDict N/A N/A b.makina-corpus.net N/A a.makina-corpus.net N/A h.makina-corpus.net N/A a.makina-corpus.net N/A c.makina-corpus.net N/A a.makina-corpus.net N/A d.makina-corpus.net N/A a.makina-corpus.net N/A atest_load_networkinfra N/A N/A self N/A N/A _load N/A N/A N/A N/A N/A N/A N/A yaml load TEST_NET N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.loaddb_do _load N/A N/A res N/A N/A N/A self _ mc_pillar.load_network_infrastructure N/A N/A N/A self assertEqual N/A res N/A ips N/A ips N/A a.ifo-online-1.makina-corpus.net a.makina-corpus.net b.makina-corpus.net c.makina-corpus.net d.makina-corpus.net e.makina-corpus.net f.makina-corpus.net failover.a.makina-corpus.net failover.thisfo.makina-corpus.net foo.makina-corpus.net goo.moo.makina-corpus.net ifo-online-1.a.makina-corpus.net ifo-online-1.makina-corpus.net ifo-online-1.thisfo.makina-corpus.net ifo-online-2.makina-corpus.net ns1.makina-corpus.com ns1.makina-corpus.net ns2.makina-corpus.com ns2.makina-corpus.net preprod-boo.foo.ifo-online-1.makina-corpus.net preprod-boo.ifo-online-1.makina-corpus.net preprod-boo.makina-corpus.net preprod-goo.makina-corpus.net preprod-moo.makina-corpus.net projecta.makina-corpus.net projectb.makina-corpus.net thisfo.ifo-online-1.makina-corpus.net thisfo.makina-corpus.net N/A 212.129.4.3 N/A 1.2.3.5 N/A 1.2.3.6 N/A 1.2.3.5 N/A 1.2.3.8 N/A 1.2.3.9 N/A 1.2.3.10 N/A 212.129.4.3 N/A 212.129.4.3 N/A 1.2.3.4 N/A 1.2.3.5 N/A 212.129.4.3 N/A 212.129.4.3 N/A 212.129.4.3 N/A 212.129.4.4 N/A 1.2.3.6 N/A 1.2.3.6 N/A 1.2.3.8 N/A 1.2.3.8 N/A 212.129.4.3 N/A 212.129.4.3 N/A 212.129.4.3 N/A 1.2.3.4 N/A 1.2.3.4 N/A 1.2.3.10 N/A 1.2.3.10 N/A 212.129.4.3 N/A 212.129.4.3 N/A test_get_fqdn_domains N/A N/A self N/A N/A N/A tests N/A N/A i N/A foo foo.bar foo.bar.org foo.bar.org. N/A N/A N/A N/A tests append N/A N/A N/A self _ mc_pillar.get_fqdn_domains i N/A N/A N/A self assertEqual tests N/A N/A N/A bar N/A org bar.org N/A org bar.org N/A test_get_mail_configuration N/A N/A self N/A N/A _query N/A N/A t N/A a kw N/A N/A N/A t N/A baremetal_hosts non_managed_hosts vms N/A N/A N/A N/A N/A baremetal_hosts N/A foo.makina-corpus.net bar.makina-corpus.net get t N/A N/A N/A t N/A ssh_groups mail_configurations configurations configuration keys_map sysadmins_keys_map sudoers_map N/A N/A N/A N/A N/A yaml load N/A TESTS N/A t N/A t N/A N/A ret1 N/A makina-states.services.mail.postfix makina-states.services.mail.postfix.auth makina-states.services.mail.postfix.default_dest makina-states.services.mail.postfix.mode makina-states.services.mail.postfix.sasl_passwd makina-states.services.mail.postfix.transport makina-states.services.mail.postfix.virtual_map True True sysadmin+{id}@makina-corpus.net relay N/A N/A entry password user [mail.makina-corpus.net] bar foo@makina-corpus.net N/A N/A nexthop relay:[mail.makina-corpus.tld] N/A N/A /root@.*/ sysadmin+foo.makina-corpus.net@makina-corpus.net N/A /postmaster@.*/ sysadmin+foo.makina-corpus.net@makina-corpus.net N/A /abuse@.*/ sysadmin+foo.makina-corpus.net@makina-corpus.net N/A /.*@foo.makina-corpus.net/ sysadmin+foo.makina-corpus.net@makina-corpus.net N/A /.*@localhost/ sysadmin+foo.makina-corpus.net@makina-corpus.net N/A /.*@.local/ sysadmin+foo.makina-corpus.net@makina-corpus.net N/A N/A N/A self patch filtered N/A mc.* kinds N/A modules funcs N/A modules N/A mc_pillar.is_salt_managed mc_pillar.query N/A Mock return_value True N/A Mock side_effect _query N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_mail_conf foo.makina-corpus.net N/A res2 N/A N/A N/A self _ mc_pillar.get_mail_conf bar.makina-corpus.net N/A N/A N/A self assertEqual res1 ret1 N/A p makina-states.services.mail.postfix.transport N/A N/A N/A self assertEqual N/A res2 N/A p N/A N/A nexthop relay:[mail.makina-corpus.net] N/A test_get_configuration N/A N/A self N/A N/A _query N/A N/A t N/A a kw N/A N/A N/A t N/A ssh_groups configurations configuration keys_map sysadmins_keys_map sudoers_map N/A N/A N/A N/A N/A yaml load N/A TESTS N/A t N/A t N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.query N/A Mock side_effect _query N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_configuration foo.makina-corpus.net N/A res2 N/A N/A N/A self _ mc_pillar.get_configuration bar.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A backup_mode cloud_images cloud_master default_env domain ldap_client mail_mode manage_backups manage_fail2ban manage_hosts manage_mails manage_network manage_ntp_server manage_packages manage_passwords manage_shorewall manage_snmpd manage_ssh_groups manage_ssh_keys manage_sudoers mastersalt mastersalt_master mastersalt_port mastersaltdn burp N/A makina-states.cloud.images.lxc.images.makina-states-precise N/A builder_ref bar.makina-corpus.net True prod makina-corpus.net True relay True True True True True False True True True True True True True f.makina-corpus.net True 4606 m.makina-corpus.net N/A N/A N/A self assertEqual res2 N/A backup_mode cloud_master default_env domain ldap_client mail_mode manage_backups manage_fail2ban manage_hosts manage_mails manage_network manage_ntp_server manage_packages manage_passwords manage_shorewall manage_snmpd manage_ssh_groups manage_ssh_keys manage_sudoers mastersalt mastersalt_master mastersalt_port mastersaltdn burp False prod makina-corpus.net True relay True True True True True False True True True True True True True f.makina-corpus.net False 4606 m.makina-corpus.net N/A test_get_passwords N/A N/A self N/A N/A N/A data N/A _update_local_reg N/A N/A name N/A args kw N/A N/A lreg N/A N/A data setdefault name N/A N/A N/A N/A lreg update N/A args N/A 0 N/A lreg N/A _local_reg N/A N/A name N/A args kw N/A N/A lreg N/A N/A data setdefault name N/A N/A lreg N/A _query N/A N/A t N/A a kw N/A N/A N/A t N/A ssh_groups passwords_map keys_map sysadmins_keys_map sudoers_map N/A N/A N/A N/A N/A yaml load N/A TESTS N/A t N/A t N/A N/A N/A N/A patch dict N/A self salt N/A mc_pillar.query mc_macros.update_local_registry mc_macros.get_local_registry N/A Mock side_effect _query N/A Mock side_effect _update_local_reg N/A Mock side_effect _local_reg N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_passwords a.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A clear crypted N/A root sysadmin zope uuu yyy zzz N/A root sysadmin zope $6$SALTsalt$RPj4P7Jeoe99lNTqpdGwNVbgZBZX/IZ8ykafFG5KbLUID2QHu7mXVyqhuVJ7sgWQlXYPiuWQ5616F7iOTjn2t. $6$SALTsalt$ZY42SLY0beqCisahVQdB0jDN0UPYd9s6Q8QYmXGgpVsIq.8nhHh8ws9b7ZdLaBnGYngoXIsQ2QpgOPmbdZ9mr. $6$SALTsalt$1xayxQrnfaujJgpZXKiBIZ4Ef54mfQdsFoKUhC66sXhEE3jpo6u9BlD81oo/Tx4QnbSu0bVD09FWHrSUH91/z1 N/A res2 N/A N/A N/A self _ mc_pillar.get_passwords b.makina-corpus.net N/A N/A N/A self assertEqual res2 N/A clear crypted N/A root sysadmin ttt ttt N/A root sysadmin $6$SALTsalt$.DJtg9kel/TTG8zCAg9bI6jwVBdrIAn/bCCQgiaLOVmzrV9zDVamEXIi1vYQb8MjtqgSzHAwaLAVQ/KCOZQ6b1 $6$SALTsalt$.DJtg9kel/TTG8zCAg9bI6jwVBdrIAn/bCCQgiaLOVmzrV9zDVamEXIi1vYQb8MjtqgSzHAwaLAVQ/KCOZQ6b1 N/A N/A N/A self assertFalse N/A c.makina-corpus.net N/A data N/A passwords_map N/A N/A N/A N/A self _ mc_pillar.get_passwords c.makina-corpus.net N/A N/A N/A self assertTrue N/A c.makina-corpus.net N/A data N/A passwords_map N/A test_get_sysadmins_keys N/A N/A self N/A N/A _query N/A N/A t N/A a kw N/A N/A N/A t N/A baremetal_hosts configurations non_managed_hosts vms N/A N/A N/A configurations baremetal_hosts N/A N/A foo.makina-corpus.net bar.makina-corpus.net N/A N/A t N/A ssh_groups keys_map sysadmins_keys_map sudoers_map N/A N/A N/A N/A N/A yaml load N/A TESTS N/A t N/A t N/A N/A N/A N/A self patch filtered N/A mc.* kinds N/A modules funcs N/A modules N/A mc_pillar.is_salt_managed mc_pillar.query N/A Mock return_value True N/A Mock side_effect _query N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_sudoers foo.makina-corpus.net N/A res2 N/A N/A N/A self _ mc_pillar.get_sudoers bar.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A sss ttt uuu N/A N/A N/A self assertEqual res2 N/A uuu N/A test_get_sudoers_map N/A N/A self N/A N/A _query N/A N/A t N/A a kw N/A N/A N/A t N/A baremetal_hosts non_managed_hosts configurations vms N/A N/A N/A configurations baremetal_hosts N/A N/A foo.makina-corpus.net bar.makina-corpus.net N/A N/A t N/A ssh_groups keys_map sysadmins_keys_map sudoers_map N/A N/A N/A N/A N/A yaml load N/A TESTS N/A t N/A t N/A N/A N/A N/A self patch filtered N/A mc.* kinds N/A modules funcs N/A modules N/A mc_pillar.is_salt_managed mc_pillar.query N/A Mock return_value True N/A Mock side_effect _query N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_sysadmins_keys foo.makina-corpus.net N/A res2 N/A N/A N/A self _ mc_pillar.get_sysadmins_keys bar.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A supervision.pub ttt.pub N/A N/A N/A self assertEqual res2 N/A supervision.pub sss.pub N/A test_get_ssh_groups N/A N/A self N/A N/A _query N/A N/A t N/A a kw N/A N/A N/A t ssh_groups N/A N/A N/A N/A N/A yaml load N/A TESTS N/A t N/A t N/A N/A N/A N/A self patch filtered N/A mc.* kinds N/A modules funcs N/A modules N/A mc_pillar.is_salt_managed mc_pillar.query N/A Mock return_value True N/A Mock side_effect _query N/A N/A res1 N/A N/A N/A self _ mc_pillar.get_ssh_groups foo.makina-corpus.net N/A res2 N/A N/A N/A self _ mc_pillar.get_ssh_groups bar.makina-corpus.net N/A N/A N/A self assertEqual res1 N/A ubuntu git-ro git-lab admin root sshusers sudo sysadmin wheel N/A N/A N/A self assertEqual res2 N/A admin root sshusers sudo sysadmin wheel N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main