szaydel
11/11/2013 - 8:31 PM

Example of complete namespace for network interfaces key formation with persistent configuration database.

Example of complete namespace for network interfaces key formation with persistent configuration database.

{
    "auth": {
        "users": {
            "root": {
                "shadow": "$5$O2EFsgjs$IF1U3Y2m4ETHzt82cwlIaNgpQR8Gpj32f8wDIAe.XuC"
            }
        }
    },
    "storage": {
        "zfs": {
            "zpools": [
                "p000t4"
            ],
            "zfstune": {
                "arc_shrink_shift": null,
                "l2arc_noprefetch": "0x0",
                "l2arc_write_boost": null,
                "zfs_arc_meta_limit": "0x4000000",
                "zfs_nocacheflush": "0x1",
                "zfs_no_write_throttle": "0x1",
                "zfs_txg_timeout": null,
                "zfs_txg_synctime_ms": null,
                "zfs_prefetch_disable": "0x0",
                "zfs_vdev_max_pending": "0xa",
                "zfs_vdev_min_pending": null
            }
        }
    },
    "network": {
        "identify": {
            "hostname": "moc-bsr-03",
            "ntp": [
                "0.us.pool.ntp.org",
                "1.us.pool.ntp.org",
                "2.us.pool.ntp.org",
                "3.us.pool.ntp.org"
            ],
            "timezone": "US/Eastern"
        },
        "aggregates": {
            "aggr1": {
                "create": false,
                "interfaces": [
                    "ixgbe0",
                    "ixgbe1"
                ],
                "policy": "L4",
                "lacp-mode": "off",
                "name": "aggr1"
            },
            "aggr2": {
                "create": false
            }
        },
        "interfaces": {
            "alias": {
                "alias0": {
                    "create": true,
                    "address": "10.11.10.1",
                    "over": "ixgbe0"
                },
                "alias1": {
                    "create": true,
                    "address": "10.11.10.2",
                    "over": "ixgbe0"
                }
            },
            "virtual": {
                "vnic0": {
                    "create": true,
                    "address": "10.11.10.1",
                    "netmask": null,
                    "broadcast": null,
                    "gateway": null,
                    "over": "ixgbe0",
                    "vlan": 0
                }
            },
            "physical": {
                "igb0": {
                    "create": true,
                    "address": "dhcp",
                    "netmask": null,
                    "broadcast": null,
                    "gateway": null,
                    "mac": "0:1e:67:34:4a:c4",
                    "mtu": 1500,
                    "alias": [
                        "alias0",
                        "alias1"
                    ],
                    "tag": [
                        "admin",
                        "primary"
                    ]
                },
                "igb1": {
                    "create": false,
                    "address": null,
                    "netmask": "255.255.255.0",
                    "broadcast": null,
                    "gateway": null,
                    "mac": "0:1e:67:34:4a:c5",
                    "mtu": 1500
                },
                "ixgbe0": {
                    "create": false,
                    "address": null,
                    "netmask": "255.255.255.0",
                    "broadcast": null,
                    "gateway": null,
                    "mac": "0:1b:21:94:97:68",
                    "mtu": 9000,
                    "tag": [
                        "fast",
                        "service",
                        "10gb"
                    ]
                },
                "ixgbe1": {
                    "create": false,
                    "address": null,
                    "netmask": null,
                    "broadcast": null,
                    "gateway": null,
                    "mac": "0:1b:21:94:97:69",
                    "mtu": 9000,
                    "tag": [
                        "fast",
                        "service",
                        "10gb"
                    ]
                }
            }
        }
    }
}
{
    "network": {
        "interfaces": {
            "physical": {
                "e1000g0": {
                    "create": true,
                    "address": "dhcp",
                    "netmask": null,
                    "broadcast": null,
                    "gateway": null,
                    "mtu": 1500,
                    "tag": [
                        "normal"
                    ]
                },
                "e1000g1": {
                    "create": true,
                    "address": null,
                    "netmask": "255.255.255.0",
                    "broadcast": null,
                    "gateway": null,
                    "mtu": 1500,
                    "group": "ip0",
                    "failover": false,
                    "tag": [
                        "ipmp"
                    ]
                },
                "e1000g2": {
                    "create": true,
                    "address": null,
                    "netmask": "255.255.255.0",
                    "broadcast": null,
                    "gateway": null,
                    "mtu": 1500,
                    "group": "ip0",
                    "failover": false,
                    "tag": [
                        "ipmp"
                    ]
                },
                "igb0": {
                    "create": true,
                    "address": "dhcp",
                    "netmask": null,
                    "broadcast": null,
                    "gateway": null,
                    "mtu": 1500,
                    "tag": [
                        "admin",
                        "primary"
                    ]
                },
                "ixgbe0": {
                    "create": false,
                    "address": null,
                    "netmask": "255.255.255.0",
                    "broadcast": null,
                    "gateway": null,
                    "mtu": 9000,
                    "aggr": "aggr1",
                    "tag": [
                        "aggr",
                        "service",
                        "10gb"
                    ]
                },
                "ixgbe1": {
                    "create": false,
                    "address": null,
                    "netmask": null,
                    "broadcast": null,
                    "gateway": null,
                    "mtu": 9000,
                    "aggr": "aggr1",
                    "tag": [
                        "aggr",
                        "service",
                        "10gb"
                    ]
                }
            }
        }
    }
}
{
  "auth": {
    "groups": {
      "superadm": {
        "members": [
          "supera",
          "superb",
          "superc"
        ],
        "gid": 123
      },
      "operator": {
        "members": [
          "opera",
          "operb",
          "operc"
        ],
        "gid": 124
      },
      "monitor": {
        "members": [
          "mona",
          "monb",
          "monc"
        ],
        "gid": 125
      }
    },
    "users": {
      "root": {
        "gecos": null,
        "shell": null,
        "expires": 999999,
        "uid": 0,
        "gid": 0,
        "shadow": "$5$O2EFsgjs$IF1U3Y2m4ETHzt82cwlIaNgpQR8Gpj32f8wDIAe.XuC"
      },
      "supera": {
        "gecos": "BrickstorOS super-administrator",
        "shell": null,
        "expires": 999999,
        "uid": 2001,
        "gid": 123,
        "shadow": "$5$RVUW3VbX$s9aH6/TMImpMm082AJTBR/eH8Y1PUmP7iWtYEfcmVCC"
      },
      "opera": {
        "gecos": "BrickstorOS operator",
        "shell": null,
        "expires": 999999,
        "uid": 3001,
        "gid": 124,
        "shadow": "$5$Bgwa/0U6$NxYuJHBKgybZ2BT4RqE.EoJzF4rijGoXEYyccakB7WB"
      }
    }
  },
  "storage": {
    "zfs": {
      "zpools": [
        "p0",
        "p1",
        "p2"
      ],
      "zfstune": {
        "arc_shrink_shift": null,
        "l2arc_noprefetch": "0x0",
        "l2arc_write_boost": null,
        "zfs_arc_meta_limit": "0x4000000",
        "zfs_nocacheflush": "0x1",
        "zfs_no_write_throttle": "0x1",
        "zfs_txg_timeout": null,
        "zfs_txg_synctime_ms": null,
        "zfs_prefetch_disable": "0x0",
        "zfs_vdev_max_pending": "0xa",
        "zfs_vdev_min_pending": null
      }
    }
  },
  "system": {
    "identity": {
      "domain": {
        "domainname": "racktoplabs.com",
        "hostname": "bsr-node-test-01"
      },
      "hosts": {
        "10.100.1.10": [
          "n00",
          "alias-n00"
        ],
        "10.100.1.11": [
          "n01",
          "alias-n01"
        ],
        "10.100.1.12": [
          "n02",
          "alias-n02"
        ],
        "10.100.1.13": [
          "n03",
          "alias-n03"
        ]
      },
      "ntp": [
        "0.us.pool.ntp.org",
        "1.us.pool.ntp.org",
        "2.us.pool.ntp.org",
        "3.us.pool.ntp.org"
      ],
      "resolver": [
        "8.8.8.8",
        "8.8.4.4"
      ],
      "timezone": "US/Eastern"
    }
  },
  "network": {
    "aggregates": {
      "aggr1": {
        "create": true,
        "interfaces": [
          "ixgbe0",
          "ixgbe1"
        ],
        "policy": "L4",
        "lacp-mode": "off",
        "name": "aggr1"
      },
      "aggr2": {
        "create": false,
        "interfaces": [
          "ixgbe2",
          "ixgbe3"
        ],
        "policy": "L4",
        "lacp-mode": "off",
        "name": "aggr3"
      }
    },
    "interfaces": {
      "physical": {
        "igb0": {
          "create": true,
          "address": "dhcp",
          "netmask": null,
          "broadcast": null,
          "gateway": null,
          "mac": "0:1e:67:34:4a:c4",
          "mtu": 1500,
          "tag": [
            "admin",
            "primary"
          ]
        },
        "igb1": {
          "create": false,
          "address": null,
          "netmask": "255.255.255.0",
          "broadcast": null,
          "gateway": null,
          "mac": "0:1e:67:34:4a:c5",
          "mtu": 1500,
          "group": "ip0",
          "failover": false
        },
        "ixgbe0": {
          "create": false,
          "address": null,
          "netmask": "255.255.255.0",
          "broadcast": null,
          "gateway": null,
          "mac": "0:1b:21:94:97:68",
          "mtu": 9000,
          "aggr": "aggr1",
          "tag": [
            "fast",
            "aggr",
            "service",
            "10gb"
          ]
        },
        "ixgbe1": {
          "create": false,
          "address": null,
          "netmask": null,
          "broadcast": null,
          "gateway": null,
          "mac": "0:1b:21:94:97:69",
          "mtu": 9000,
          "aggr": "aggr1",
          "tag": [
            "fast",
            "aggr",
            "service",
            "10gb"
          ]
        }
      }
    },
    "ipmp": {
      "ip0": {
        "create": true,
        "address": "10.10.10.1",
        "netmask": "255.255.255.0",
        "broadcast": null,
        "gateway": null,
        "interfaces": [
          "ixgbe0",
          "ixgbe1"
        ],
        "failover": false,
        "tag": [
          "ipmp",
          "fast",
          "nfs"
        ]
      },
      "ip1": {
        "create": true,
        "address": "10.10.10.2",
        "netmask": "255.255.255.0",
        "broadcast": null,
        "gateway": null,
        "interfaces": [
          "ixgbe2",
          "ixgbe3"
        ],
        "failover": false,
        "tag": [
          "ipmp",
          "fast",
          "cifs"
        ]
      }
    }
  }
}
{
  "auth": {
    "groups": {
      "superadm": {
        "members": [
          "supera",
          "superb",
          "superc"
        ],
        "gid": 123
      },
      "operator": {
        "members": [
          "opera",
          "operb",
          "operc"
        ],
        "gid": 124
      },
      "monitor": {
        "members": [
          "mona",
          "monb",
          "monc"
        ],
        "gid": 125
      }
    },
    "users": {
      "root": {
        "gecos": null,
        "shell": null,
        "expires": 999999,
        "uid": 0,
        "gid": 0,
        "shadow": "$5$O2EFsgjs$IF1U3Y2m4ETHzt82cwlIaNgpQR8Gpj32f8wDIAe.XuC"
      },
      "supera": {
        "gecos": "BrickstorOS super-administrator",
        "shell": null,
        "expires": 999999,
        "uid": 2001,
        "gid": 123,
        "shadow": "$5$RVUW3VbX$s9aH6/TMImpMm082AJTBR/eH8Y1PUmP7iWtYEfcmVCC"
      },
      "opera": {
        "gecos": "BrickstorOS operator",
        "shell": null,
        "expires": 999999,
        "uid": 3001,
        "gid": 124,
        "shadow": "$5$Bgwa/0U6$NxYuJHBKgybZ2BT4RqE.EoJzF4rijGoXEYyccakB7WB"
      }
    }
  }
}
auth:groups:monitor:gid : 125
auth:groups:monitor:members : [u'mona', u'monb', u'monc']
auth:groups:operator:gid : 124
auth:groups:operator:members : [u'opera', u'operb', u'operc']
auth:groups:superadm:gid : 123
auth:groups:superadm:members : [u'supera', u'superb', u'superc']
auth:users:opera:expires : 999999
auth:users:opera:gecos : BrickstorOS operator
auth:users:opera:gid : 124
auth:users:opera:shadow : $5$Bgwa/0U6$NxYuJHBKgybZ2BT4RqE.EoJzF4rijGoXEYyccakB7WB
auth:users:opera:shell : None
auth:users:opera:uid : 3001
auth:users:root:expires : 999999
auth:users:root:gecos : None
auth:users:root:gid : 0
auth:users:root:shadow : $5$O2EFsgjs$IF1U3Y2m4ETHzt82cwlIaNgpQR8Gpj32f8wDIAe.XuC
auth:users:root:shell : None
auth:users:root:uid : 0
auth:users:supera:expires : 999999
auth:users:supera:gecos : BrickstorOS super-administrator
auth:users:supera:gid : 123
auth:users:supera:shadow : $5$RVUW3VbX$s9aH6/TMImpMm082AJTBR/eH8Y1PUmP7iWtYEfcmVCC
auth:users:supera:shell : None
auth:users:supera:uid : 2001