Mentions légales du service

Skip to content
Snippets Groups Projects

lanpower

YAML configuration file sample :


nodes:
  paradent-1:
    type: "bmc"
    bmc: "ipmi"
    user: "xxx"
    password: "xxx"
    suffix: "-bmc"
    sleep: "3"
  paradent-12:
    type: "bmc"
    bmc: "ipmi"
    user: "xxx"
    password: "xxx"
    suffix: "-bmc"
    sleep: "3"
  rpi-1:
    sleep: '3'
    type: "snmp"
    snmp_device: "sw-poe-1.site"
    snmp_version: '2c'
    community: "myprivatecommunity"
    oid: "1.3.6.1.2.1.105.1.1.1.3.1.49"
    snmp_on: 1
    snmp_off: 2
  rpi-2:
    sleep: '3'
    type: "snmp"
    snmp_device: "sw-poe-1.site"
    snmp_version: '2c'
    community: "myprivatecommunity"
    oid: "1.3.6.1.2.1.105.1.1.1.3.1.50"
    snmp_on: 1
    snmp_off: 2
clusters:
  paradent:
    type: "bmc"
    bmc: "ipmi"
    user: "xxx"
    password: "xxx"
    suffix: "-bmc"
    sleep: "6"
    command_delay: "3" # optional (used for sol in sophia to wait after command to get status, 1 by default)
  parapide:
    type: "bmc"
    bmc: "ipmi"
    user: "xxx"
    password: "xxx"
    suffix: "-bmc"
    sleep: "6"
  parapluie:
    type: "bmc"
    bmc: "ipmi"
    user: "xxx"
    password: "xxx"
    suffix: "-bmc"
    sleep: "6"

Node-specific configuration takes precedence over cluster-wide configuration.

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but

    bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.