<commit_before>(*
Module: MCollective
  Parses MCollective's configuration files

Author: <NAME> <<EMAIL>>

About: Reference
    This lens is based on MCollective's default client.cfg and server.cfg.

About: Usage Example
(start code)
    augtool> get /files/etc/mcollective/client.cfg/plugin.psk
    /files/etc/mcollective/client.cfg/plugin.psk = unset

    augtool> ls /files/etc/mcollective/client.cfg/
    topicprefix = /topic/
    main_collective = mcollective
    collectives = mcollective
    [...]

    augtool> set /files/etc/mcollective/client.cfg/plugin.stomp.password example123
    augtool> save
    Saved 1 file(s)
(end code)
   The <Test_MCollective> file also contains various examples.

About: License
  This file is licensed under the LGPL v2+, like the rest of Augeas.
*)

module MCollective =
autoload xfm

let lns = Simplevars.lns

let filter = incl "/etc/mcollective/client.cfg"
           . incl "/etc/mcollective/server.cfg"

let xfm = transform lns filter<commit_msg>Add /etc/puppetlabs/mcollective to mcollective lens<commit_after>(*
Module: MCollective
  Parses MCollective's configuration files

Author: <NAME> <<EMAIL>>

About: Reference
    This lens is based on MCollective's default client.cfg and server.cfg.

About: Usage Example
(start code)
    augtool> get /files/etc/mcollective/client.cfg/plugin.psk
    /files/etc/mcollective/client.cfg/plugin.psk = unset

    augtool> ls /files/etc/mcollective/client.cfg/
    topicprefix = /topic/
    main_collective = mcollective
    collectives = mcollective
    [...]

    augtool> set /files/etc/mcollective/client.cfg/plugin.stomp.password <PASSWORD>
    augtool> save
    Saved 1 file(s)
(end code)
   The <Test_MCollective> file also contains various examples.

About: License
  This file is licensed under the LGPL v2+, like the rest of Augeas.
*)

module MCollective =
autoload xfm

let lns = Simplevars.lns

let filter = incl "/etc/mcollective/client.cfg"
           . incl "/etc/mcollective/server.cfg"
           . incl "/etc/puppetlabs/mcollective/client.cfg"
           . incl "/etc/puppetlabs/mcollective/server.cfg"

let xfm = transform lns filter
{'fraction_non_alphanumeric': 0.09953271028037383, 'fraction_numerical': 0.0032710280373831778, 'mean_word_length': 3.3516260162601625, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5794199', 'n_tokens_mistral': 722, 'n_tokens_neox': 707, 'n_words': 191}