Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
etc/passwd を繰り返し処理するよりも、chef で (特定のグループの) ユーザーを取得するためのよりエレガントな方法はありますか? 検索機能を使用して、データ バッグからグループ メンバーのリストを取得できると思います。
はい、ohaiはあなたにそのような情報を与えます。これらの自動属性には、他の属性と同じようにアクセスできます。
グループに関する情報は、node[:etc][:group]
node[:etc][:group]