johnbellone / znc-cookbook

Application cookbook for installing and configuring the ZNC IRC bouncer.
Other
6 stars 11 forks source link

no docs about users data bag, nor prototype user object #1

Open metaxis opened 11 years ago

metaxis commented 11 years ago

This leaves one to discover the need and then examine templates and znc docs to fill in fields... Some proposed content for the requirements section of the readme:

Data Bag

This cookbook builds the irc users in the config from a users data bag, with users belonging to the znc group and with znc attributes like this:

data_bags/users/fred.json:

{
    "id": "fred",
    "groups": "znc",
    "znc":
        {
            "nick": "fredique",
            "pass": "see_below"
            "alt_nick": fredique-z",
            "real_name": "Steve Urbane",
            "ident": "Wanda",
            "server": "something-like-irc.freenode.net",
            "channels": ["#chef", "#chef-hacking"],
            // or
            "channels": {
              "#chef": { "Buffer": 500, "KeepBuffer": true },
              "#chef-hacking": {}
              },
            "modules": ["nickserv"]
        }
}

For the pass field you can use znc --makepass to generate the hash.

agoddard commented 11 years ago

+1, would be good to roll this in for new users