Re: File and folder rights

Aleksey Tsalolikhin <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <CANNWuVUGwmfEwxq6q88ky+rfi4s2e26CvCVku01vddJgzfughg@mail.gmail.com>
The _best_ solution, in my opinion, is the Enterprise edition of CFEngine.
It aggregates all this information (ip, hostname, version of software
etc... )  automatically in a PostgreSQL database.  All you have to do is
run reports which you can through the Web UI or directly on the CLI (my
preference).   :)

Best,
Aleksey

-- 
Founder
Vertical Sysadmin, Inc.
Achieve real learning.


On Fri, May 21, 2021 at 6:56 AM 'Nick Anderson' via help-cfengine <
[email protected]> wrote:

> thierry thunot <[email protected]> writes:
>
> Hello Nick, Thanks again for giving me lots of tips on using Cfengine. I
> learn about it every day! I will once again follow your recommendations and
> split the promise into several bundles to respect your advice.
>
> Great, glad that it helps!
>
> I guess before you head down that path too far, I should also point out
> the host_info_report in the MPF. Were you aware of it? The bundle is not
> run automatically by default, but it's there for use, you could call it
> from your policy with a *methods* type promise, you could modify it to
> your needs (but that introduces a maintenance burden), or you could use it
> for inspiration in building something similar for yourself.
> Listing 1: Run the host info report budle to generate a report and view it
>
> exec 2>&1
> cf-agent -K --bundlesequence host_info_report
> cat /var/cfengine/reports/host_info_report.txt
> :
>
> R: Host info report generated and available at '/var/cfengine/reports/host_info_report.txt'
> # Host Information
> Generated: Fri May 21 13:45:47 2021
>
> ## Identity
> Fully Qualified Hostname: redacted.cfengine.com
> Host ID: SHA=727dd7f6f8b2344c6d69cf1d3ed0446c0f9f095ce1a114481d691bf1cb2b300d
>
> ## CFEngine
> Version: CFEngine Enterprise 3.17.0
> Last Agent Run: 2021-05-21 13:42:23 UTC
> Policy Release ID: f14044dd0a7bae7465d08d9b7013c9171c16c312
> Policy Last Updated: 2021-05-21 13:45:09 UTC
> Bootstrapped to: redacted
>
> ## OS
> Architecture: x86_64
> Os: linux
> Release: 3.10.0-1127.18.2.el7.x86_64
> Flavor: centos_7
> Version: #1 SMP Sun Jul 26 15:27:06 UTC 2020
> Uptime: 403082 minutes
>
> ## Hardware
> No. CPUs: 2
> Total Memory: 3789.36 MB
> Total Swap: 0.00 MB
> Free Memory: 442.62 MB
> Free Swap: 0.00 MB
>
> ## Network
>
> ### Interfaces
>   * eth0: IPv4 10.17.0.13
>   * eth0: up broadcast running multicast
>   * lo: IPv4 127.0.0.1
>   * lo: up loopback running
>
> ### IPv4 TCP Ports listening
>   * 25
>   * 5432
>   * 22
>   * 111
>
>
> ## Policy
>
> Information about the policy set on this host.
>
> ### Inventory
>
> #### Variables tagged for inventory
>
> redacted
>
> ### Enterprise maintanance bundles available
>     cfengine_enterprise_federation:entry
>     default:cfe_internal_clear_last_seen_hosts_logs
>     default:cfe_internal_enterprise_policy_analyzer
>     default:cfe_internal_refresh_events_table
>     default:cfe_internal_refresh_hosts_view
>     default:cfe_internal_refresh_inventory_view
>     default:cfe_internal_update_health_failures
>
> Actually I need to transfer a lot of data (ip, hostname, version of
> software etc… ) automatically from my cfengine clients using files, for
> inventory for example. I am using the Reports function. I create a file on
> my client which I then transfer via SCP to a directory on another resource.
>
> Is it the best solution or do you advise me to use another function?
>
> Well, I am glad you asked. First, I am of course bias, but, I think
> CFEngine Enterprise is the *best* solution for this. You don't have to do
> anything special, you just get centralized reporting. As far as continuing
> down the path you are on, I would nudge you away from using the *reports*
> type promise for what you are doing. At least as best I can tell, a files
> type promise to manage the full content of a file would be much more
> straight forward and appropriate for your use case. I think reports
> promises to a file are more appropriate for logging.
>
> --
> You received this message because you are subscribed to the Google Groups
> "help-cfengine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/help-cfengine/87o8d4i41a.fsf%40northern.tech
> <https://groups.google.com/d/msgid/help-cfengine/87o8d4i41a.fsf%40northern.tech?utm_medium=email&utm_source=footer>
> .
> --
> Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech
>
> --
> You received this message because you are subscribed to the Google Groups
> "help-cfengine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/help-cfengine/87o8d4i41a.fsf%40northern.tech
> .
>

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/CANNWuVUGwmfEwxq6q88ky%2Brfi4s2e26CvCVku01vddJgzfughg%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.