問題タブ [facter]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
3581 参照

puppet - mcollective mco facts コマンド 空白の結果出力

mcollective を activemq でインストールしましたが、次のコマンドを実行すると正常に実行されましたが、結果が空白になり、レポート出力を確認したいと考えています。

インストール済みプラグイン

編集:

0 投票する
1 に答える
2203 参照

ruby - Using a Facter Fact within a fact for command execution

I am trying to write a custom facter module that incorporates a fact within a fact for the command via concatenation of the command string plus a facter fact variable:

Newbie to ruby and Puppet... 1. What would be the proper syntax to do something with this?

  1. Is there any way to parse the output into an array of facts or what is the correct way to search the $string_to_parse for the content I need.

Here is an example of the output generated with the command:

I would need the security group and stack name.

0 投票する
1 に答える
2768 参照

json - Puppet : puppet テンプレート内の外部ファクター json 配列の反復

puppet エージェントからマスター ノードにデータを送信しています。ここでは、facters/facts.d/myData.json ファイルで json 配列を使用します。マスター側にはテンプレートがあります。そこで、この外部ファクト json 配列を反復処理したいと考えています。

パペットテンプレート内でこれを行うことはできますか? この配列を反復するにはどうすればよいですか? 私はフォローしようとしましたが失敗しました

よろしく、 マリンサ