{"id":17,"date":"2022-10-08T09:42:03","date_gmt":"2022-08-17T11:41:28","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T10:05:43","modified_gmt":"2025-07-31T01:05:43","slug":"ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 &#8211; \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248"},"content":{"rendered":"<p>\u4f5c\u5bb6\u306f\u3001Write for Donations\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u5bc4\u4ed8\u3092\u53d7\u3051\u308b\u56e3\u4f53\u3068\u3057\u3066Open Internet\/Free Speech Fund\u3092\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>CFEngine\u306fIT\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u30fc\u306e\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u8a2d\u5b9a\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u3002CFEngine\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Linux\u3001Mac\u3001Windows\u3001BSD\u3001Solaris\u3001IBM AIX\u3001HP-UX\u306a\u3069\u306e\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u30fc\u5168\u4f53\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u540c\u3058\u30c4\u30fc\u30eb\u3068\u30dd\u30ea\u30b7\u30fc\u30e9\u30f3\u30b2\u30fc\u30b8\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u7ba1\u7406\u3057\u305f\u3044\u5404\u30de\u30b7\u30f3\u306b\uff08C\u3067\u8a18\u8ff0\u3055\u308c\u305f\uff09\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002CFEngine\u306f\u591a\u304f\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001\u5927\u898f\u6a21\u306a\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u30fc\u3084\u5c0f\u3055\u306a\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30aa\u30d6\u30fb\u30b7\u30f3\u30b0\u30b9\uff08IoT\uff09\u30c7\u30d0\u30a4\u30b9\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u5236\u7d04\u306e\u3042\u308b\u74b0\u5883\u306b\u6709\u7528\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Ubuntu 20.04\u306bCFEngine Community Edition 3.21\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30b5\u30f3\u30d7\u30eb\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u30dd\u30ea\u30b7\u30fc\u306e\u5b9f\u884c\u3092\u81ea\u52d5\u5316\u3057\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>One Ubuntu 20.04 server with a non-root sudo user. To set this up, follow our guide Initial Server Setup with Ubuntu 20.04.<\/li>\n<li>A way of running shell commands (including sudo), such as ssh.<\/li>\n<li>A text editor. This tutorial uses nano.<\/li>\n<\/ul>\n<h2>\u30b9\u30c6\u30c3\u30d71 &#8211; CFEngine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001apt\u3068\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3057\u3066CFEngine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306bapt\u3092\u4f7f\u7528\u3059\u308b\u4e3b\u306a\u5229\u70b9\u306f\u3001\u5f8c\u3067apt\u3092\u4f7f\u7528\u3057\u3066CFEngine\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u7570\u306a\u308b\u7528\u9014\u306b\u5fdc\u3058\u3066CFEngine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u4ed6\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>cf-remote is a flexible choice that handles installing on multiple machines, different versions of CFEngine, and nightly builds.<\/li>\n<li>The quick-install shell script is a good choice for a single machine. You can install by copying a single command into the terminal.<\/li>\n<li>You can also download the packages directly from the website.<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u4ee3\u66ff\u624b\u6bb5\u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u7528\u3057\u3066CFEngine Community\u307e\u305f\u306fEnterprise\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u30b9\u30c6\u30c3\u30d72- CFEngine\u306e\u8d77\u52d5\u306b\u9032\u3080\u304b\u3001\u30b9\u30c6\u30c3\u30d73- \u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u5f8c\u306b\u6700\u521d\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>CFEngine\u306e\u516c\u958b\u9375\u306e\u8ffd\u52a0<\/h3>\n<p>CFEngine\u3092apt\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001apt\u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u521d\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001CFEngine\u306e\u516c\u958bGPG\u30ad\u30fc\u3092apt\u306e\u30ad\u30fc\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306b\u8ffd\u52a0\u3057\u3066\u3001apt\u304c\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4fe1\u983c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ad\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002 (Please download the key with this command.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">wget<\/span> https:\/\/cfengine.com\/pub\/gpg.key <span class=\"token parameter variable\">-O<\/span> ~\/cfengine-gpg.key<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u308c\u304b\u3089\u3001apt-key\u3092\u4f7f\u7528\u3057\u3066\u305d\u308c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> apt-key <span class=\"token function\">add<\/span> ~\/cfengine-gpg.key<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h3>CFEngine\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/h3>\n<p>\u6b21\u306b\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067CFEngine\u30ea\u30dd\u30b8\u30c8\u30ea\u3092apt\u306e\u30bd\u30fc\u30b9\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">sh<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#8220;echo &#8216;deb https:\/\/cfengine-package-repos.s3.amazonaws.com\/pub\/apt\/packages stable main&#8217; &gt; \/etc\/apt\/sources.list.d\/cfengine-community.list&#8221;<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306fapt\u30bd\u30fc\u30b9\u30ea\u30b9\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306bCFEngine\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u300c-c\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u300csh\u300d\u5f15\u6570\u304c\u306a\u3044\u5834\u5408\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u300cPermission denied\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u306a\u305c\u306a\u3089\u3001\u300csudo\u300d\u3067\u306f\u51fa\u529b\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u3001\u300csudo\u300d\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30a7\u30eb\u3092\u5b9f\u884c\u3057\u3001\u300c-c\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u6e21\u3059\u305f\u3081\u306b\u300csh\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066apt\u304cCFEngine\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u65b0\u3057\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u898b\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<h3>\u300capt\u300d\u3092\u4f7f\u7528\u3057\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/h3>\n<p>CFEngine\u30d1\u30c3\u30b1\u30fc\u30b8\u304capt\u306b\u767b\u9332\u3055\u308c\u305f\u306e\u3067\u3001apt\u3092\u4f7f\u7528\u3057\u3066CFEngine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> cfengine-community<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3082\u3057\u7570\u306a\u308b\uff08\u65e7\u3044\uff09\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4f5c\u6210\u3055\u308c\u305f\u8b66\u544a\u3092\u53d7\u3051\u53d6\u3063\u305f\u5834\u5408\u3067\u3082\u3001\u7121\u8996\u3057\u3066\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u307e\u3060\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d\u3092\u884c\u3046\u3002<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001\/var\/cfengine\/bin\u306bCFEngine\u3092\u69cb\u6210\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u3001cf-agent\u3068\u547c\u3070\u308c\u308b\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u307b\u3068\u3093\u3069\u306e\u6642\u9593\u306b\u304a\u3044\u3066\u5bfe\u8a71\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30d0\u30a4\u30ca\u30ea\u306f\u3001\u3042\u306a\u305f\u304c\u66f8\u3044\u305f\u30dd\u30ea\u30b7\u30fc\u3092\u8a55\u4fa1\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u306b\u5909\u66f4\u3092\u52a0\u3048\u3001\u3057\u305f\u3053\u3068\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u3092\u8a18\u9332\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f5\u5206\u3054\u3068\u306b\u8d77\u52d5\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u65b0\u3057\u3044\u30dd\u30ea\u30b7\u30fc\u3092\u53d6\u5f97\u3057\u3001\u305d\u308c\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> cf-agent <span class=\"token parameter variable\">&#8211;version<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u304c\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>CFEngine Core 3.21.0<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u3053\u306e\u6587\u66f8\u4f5c\u6210\u6642\u70b9\u3067\u306e\u73fe\u5728\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f3.21.0\u3067\u3059\u3002\u304a\u4f7f\u3044\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u306f\u7570\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>cf-agent\u30b3\u30de\u30f3\u30c9\u304c\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u306f\u3001PATH\u5909\u6570\u306b\/var\/cfengine\/bin\/\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bcf-agent\u304c\u5b58\u5728\u3059\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u307e\u305f\u3001\u4f55\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u304b\u306b\u3064\u3044\u3066\u306e\u30d2\u30f3\u30c8\u3092\u5f97\u308b\u305f\u3081\u306b\u3001\/var\/log\/CFEngine-Install.log\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u3082\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 \uff0d CFEngine\u306e\u958b\u59cb<\/h2>\n<p>CFEngine\u3092\u958b\u59cb\u3059\u308b\u306b\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30d6\u30fc\u30c8\u30b9\u30c8\u30e9\u30c3\u30d7\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> cf-agent <span class=\"token parameter variable\">&#8211;bootstrap<\/span> <span class=\"token number\">127.0<\/span>.0.1<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3001CFEngine\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u958b\u59cb\u3057\u3001\u30dd\u30ea\u30b7\u30fc\u3092\u3053\u306e\u30de\u30b7\u30f3\u3001127.0.0.1\u304b\u3089\u53d6\u5f97\u3059\u308b\u3088\u3046\u6307\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u5c06\u6765\u7684\u306b\u306f\u3001\u540c\u3058\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30dd\u30ea\u30b7\u30fc\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u8907\u6570\u306e\u30de\u30b7\u30f3\u304c\u5fc5\u8981\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u306e\u5834\u5408\u3001127.0.0.1\u306f\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001CFEngine\u306b\u3064\u3044\u3066\u59cb\u3081\u308b\u305f\u3081\u306b\u306f\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f1\u53f0\u306e\u30de\u30b7\u30f3\u3068127.0.0.1\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>CFEngine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u7a3c\u50cd\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u30dd\u30ea\u30b7\u30fc\u3092\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73 \u2014 \u6700\u521d\u306e\u30dd\u30ea\u30b7\u30fc\u306e\u4f5c\u6210<\/h2>\n<p>CFEngine\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u306e\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3059\u308b\u306b\u306f\u3001CFEngine\u306e\u72ec\u81ea\u306e\u30c9\u30e1\u30a4\u30f3\u56fa\u6709\u8a00\u8a9e\uff08DSL\uff09\u3067\u8a18\u8ff0\u3055\u308c\u305f\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30dd\u30ea\u30b7\u30fc\u8a00\u8a9e\u306e\u8a73\u7d30\u3084\u3001\u305d\u308c\u304c\u3069\u306e\u3088\u3046\u306a\u6a5f\u80fd\u3092\u6301\u3061\u3001\u3069\u306e\u3088\u3046\u306b\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u306b\u3064\u3044\u3066\u306f\u3001CFEngine\u306e\u53c2\u7167\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u306f\u7570\u306a\u308a\u3001\u5ba3\u8a00\u7684\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u671b\u307e\u3057\u3044\u72b6\u614b\u3092\u8a18\u8ff0\u3057\u3001CFEngine\u306f\u65e2\u306b\u305d\u306e\u72b6\u614b\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306a\u5834\u5408\u306e\u307f\u5909\u66f4\u3092\u52a0\u3048\u307e\u3059\u3002\u30dd\u30ea\u30b7\u30fc\u3067\u8868\u73fe\u3057\u305f\u3044\u3053\u3068\u306e\u4e00\u90e8\u306e\u4f8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>Ensure the user sammy exists.<\/li>\n<li>Keep the curl package updated (and installed).<\/li>\n<li>Ensure telnet is not installed.<\/li>\n<li>Render a script file from a template and some data.<\/li>\n<li>Stop a process, like httpd, if it\u2019s running.<\/li>\n<li>Enforce strict permissions on the \/usr\/bin folder.<\/li>\n<\/ul>\n<p>\u3053\u308c\u3089\u306e\u30b1\u30fc\u30b9\u306b\u304a\u3044\u3066\u306f\u3001\u65b9\u91dd\u3092\u66f8\u304d\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u9069\u5207\u306a\u5834\u6240\uff08\/var\/cfengine\/masterfiles\uff09\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001CFEngine\u304c\u6b21\u306e\u64cd\u4f5c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Automate distribution of the policy file by transferring it to your other bootstrapped hosts.<\/li>\n<li>Enforce your requirements regularly (running the policy every five minutes by default). For example, if someone deleted the user sammy, or changed the permissions on \/usr\/bin, these changes would be restored automatically within five minutes.<\/li>\n<li>Only make changes, such as writing to a file, if it\u2019s necessary (that is, if the state is not already as desired).<\/li>\n<li>Handle many platform differences for you (for example, the commands used to install packages, create users, and other operations vary depending on the operating system).<\/li>\n<\/ul>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u300cHello World\u300d\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u3092\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u51fa\u529b\u3059\u308b\u300cHello World\u300d\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u30fc\u3001\u3082\u3057\u304f\u306fnano\u3092\u4f7f\u3063\u3066\u3001\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u3001~\/hello_world.cf\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">nano<\/span> ~\/hello_world.cf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u3001\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u3053\u3093\u306b\u3061\u306f\u3001\u4e16\u754c\u3002<\/div>\n<pre class=\"post-pre\"><code>bundle agent main\r\n{\r\n  reports:\r\n    \"Hello!\";\r\n}\r\n<\/code><\/pre>\n<p>CFEngine\u306e\u30dd\u30ea\u30b7\u30fc\u306f\u5ba3\u8a00\u7684\u3067\u3042\u308a\u3001\u4e0a\u304b\u3089\u4e0b\u3078\u8a55\u4fa1\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>CFEngine\u30dd\u30ea\u30b7\u30fc\u8a00\u8a9e\u3067\u306f\u3001\u7ba1\u7406\u3057\u3066\u3044\u308b\u5185\u5bb9\u306b\u95a2\u3059\u308b\u5404\u6587\u306f\u300c\u7d04\u675f\u300d\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u7d04\u675f\u306f\u30d0\u30f3\u30c9\u30eb\u306b\u6574\u7406\u3055\u308c\u307e\u3059\u3002\u30d0\u30f3\u30c9\u30eb\u306f\u4fbf\u5229\u3067\u3042\u308a\u3001\u30dd\u30ea\u30b7\u30fc\u306e\u3069\u306e\u90e8\u5206\u3092\u5b9f\u884c\u3059\u308b\u304b\uff08\u5b9f\u884c\u3057\u306a\u3044\u304b\uff09\u3068\u305d\u306e\u5b9f\u884c\u9806\u5e8f\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30dd\u30ea\u30b7\u30fc\u3067\u306f\u3001reports\u306f\u30d7\u30ed\u30df\u30b9\u306e\u30bf\u30a4\u30d7\u3067\u3042\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7aef\u672b\u306b\u51fa\u529b\u3059\u308b\u8cac\u4efb\u304c\u3042\u308a\u307e\u3059\u3002bundle\u306e\u5f8c\u306eagent\u30ad\u30fc\u30ef\u30fc\u30c9\u306f\u3001\u3053\u306e\u30d0\u30f3\u30c9\u30eb\u304ccf-agent\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u7528\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3057\u307e\u3059\u3002\u30d0\u30f3\u30c9\u30eb\u306e\u540d\u524d\u306fmain\u3067\u3059\u3002\u30d0\u30f3\u30c9\u30eb\u30b7\u30fc\u30b1\u30f3\u30b9\u306f\u8a55\u4fa1\u3059\u308b\u30d0\u30f3\u30c9\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001main\u30d0\u30f3\u30c9\u30eb\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u5909\u66f4\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002nano\u3092\u4f7f\u7528\u3057\u3066\u3001\u7d42\u4e86\u3059\u308b\u306b\u306fCTRL+X\u3092\u62bc\u3057\u3001\u4fdd\u5b58\u3059\u308b\u306b\u306fY\u3092\u62bc\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u78ba\u8a8d\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b\u305f\u3081\u306bENTER\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p>CFEngine\u306f\u901a\u5e38\u3001root\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u5b9f\u884c\u3055\u308c\u308b\u305f\u3081\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u53b3\u5bc6\u306a\u6a29\u9650\u3092\u8981\u6c42\u3059\u308b\u3053\u3068\u3067\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u4e0d\u6b63\u306a\u5909\u66f4\u3092\u9632\u6b62\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\uff08\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u304cCFEngine\u304c\u5b9f\u884c\u3059\u308b\u30dd\u30ea\u30b7\u30fc\u3092\u7de8\u96c6\u3059\u308b\u3053\u3068\u3067\u3001\u7279\u6a29\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff09\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306bchmod\u3092\u4f7f\u7528\u3057\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> hello_world.cf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30dd\u30ea\u30b7\u30fc\u3092\u5b9f\u884c\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> cf-agent ~\/hello_world.cf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>CFEngine\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u3001\u30e1\u30a4\u30f3\u306e\u540d\u524d\u306b\u3088\u3063\u3066\u3042\u306a\u305f\u306e\u30d0\u30f3\u30c9\u30eb\u3092\u898b\u3064\u3051\u3001\u305d\u306e\u4e2d\u306e\u7d04\u675f\u3092\u8a55\u4fa1\u3057\u307e\u3059\u3002\u7d04\u675f\u3092\u8a55\u4fa1\u3059\u308b\u969b\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u30b7\u30b9\u30c6\u30e0\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b\u5fc5\u8981\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u7d04\u675f\u306f\u305f\u30601\u3064\u3042\u308a\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u305d\u306e\u7d04\u675f\u3092\u6e80\u305f\u3059\u305f\u3081\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7aef\u672b\u306b\u51fa\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u5224\u65ad\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>R: Hello!<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001CFEngine\u306f\u4f55\u304c\u884c\u308f\u308c\u305f\u304b\u3092\u8ffd\u8de1\u3057\u3001\u6700\u8fd1\u8a55\u4fa1\u3055\u308c\u305f\u7d04\u675f\uff08\u76f4\u8fd1\u306e1\u5206\u4ee5\u5185\uff09\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3059\u3002\u30dd\u30ea\u30b7\u30fc\u3092\u518d\u5b9f\u884c\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u4f55\u3082\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002&#8211;no-lock\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3001\u3053\u306e\u30ed\u30c3\u30af\u3092\u7121\u52b9\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> cf-agent &#8211;no-lock hello_world.cf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u521d\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u3066\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u51fa\u529b\u3067\u304d\u308b\u3053\u3068\u306f\u4fbf\u5229\u3067\u3059\u304c\u3001\u3053\u306e\u30dd\u30ea\u30b7\u30fc\u306f\u5b9f\u969b\u306b\u306f\u30b7\u30b9\u30c6\u30e0\u3092\u5909\u3048\u307e\u305b\u3093\u3002\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u305d\u308c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 &#8211; \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30dd\u30ea\u30b7\u30fc\u306e\u4f5c\u6210<\/h2>\n<p>\u524d\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u3088\u308a\u73fe\u5b9f\u7684\u306a\u4f7f\u7528\u4f8b\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u5185\u306e\u3059\u3079\u3066\u306e\u30db\u30b9\u30c8\u306b\u7279\u5b9a\u306e\u5185\u5bb9\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\uff08\/tmp\/my_file.txt\uff09\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u4e2d\u306b\u300c\u3053\u3093\u306b\u3061\u306f\u3001CFEngine\uff01\u300d\u3068\u3044\u3046\u5185\u5bb9\u3092\u5165\u308c\u308b\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u65b9\u91dd\u30d5\u30a1\u30a4\u30eb\u3001~\/file_management.cf\u3092\u958b\u304f\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">nano<\/span> ~\/file_management.cf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002 (Ika no kontentsu wo tsuika shite kudasai.)<\/p>\n<div>~\/\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406.cf<\/div>\n<pre class=\"post-pre\"><code>bundle agent manage_my_file\r\n{\r\n  files:\r\n    \"\/tmp\/my_file.txt\"\r\n      content =&gt; \"Hello, CFEngine!$(const.n)\";\r\n}\r\n<\/code><\/pre>\n<p>\u30d0\u30f3\u30c9\u30eb\u306e\u540d\u524d\u306f\u300cmanage_my_file\u300d\u3067\u3059\u3002\u4e00\u3064\u306e\u30e1\u30a4\u30f3\u30d0\u30f3\u30c9\u30eb\u4ee5\u5916\u306b\u306f\u3001\u305d\u308c\u305e\u308c\u30e6\u30cb\u30fc\u30af\u3067\u5177\u4f53\u7684\u306a\u540d\u524d\u3092\u4ed8\u3051\u308b\u3079\u304d\u3067\u3059\u3002\u30e1\u30a4\u30f3\u30d0\u30f3\u30c9\u30eb\u306f\u4e00\u3064\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30dd\u30ea\u30b7\u30fc\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u3001\u305d\u306e\u627f\u8afe\u30bf\u30a4\u30d7\u306f\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u30b3\u30f3\u30c6\u30f3\u30c4\u5c5e\u6027\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u627f\u8afe\u306b\u4f7f\u7528\u3055\u308c\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u304c\u4f55\u3067\u3042\u308b\u3079\u304d\u304b\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u6587\u5b57\u5217\u306e\u6700\u5f8c\u306e\u90e8\u5206\u3001$(const.n)\u306f\u7279\u6b8a\u5909\u6570const.n\u3092\u5c55\u958b\u3057\u3001\u305d\u306e\u7d50\u679c\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b\u6539\u884c\u304c\u633f\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u524d\u3068\u540c\u69d8\u306b\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u306b\u53b3\u683c\u306a\u30a2\u30af\u30bb\u30b9\u8a31\u53ef\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">chmod<\/span> <span class=\"token number\">600<\/span> file_management.cf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3055\u3042\u3001\u3044\u304f\u3064\u304b\u306e\u8ffd\u52a0\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> cf-agent &#8211;no-lock <span class=\"token parameter variable\">&#8211;info<\/span> ~\/file_management.cf <span class=\"token parameter variable\">&#8211;bundle<\/span> manage_my_file<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30e1\u30a4\u30f3\u30d0\u30f3\u30c9\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u305f\u3081\u3001&#8211;bundle manage_my_file\u3067\u30d0\u30f3\u30c9\u30eb\u306e\u6307\u5b9a\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>&#8211;info\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001CFEngine\u304c\u30b7\u30b9\u30c6\u30e0\u306b\u884c\u3063\u3066\u3044\u308b\u5909\u66f4\u306b\u95a2\u3059\u308b\u60c5\u5831\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u51fa\u529b\u306b\u306f\u3001\u3053\u308c\u3089\u306e\u5909\u66f4\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>info: Using command line specified bundlesequence info: Created file &#8216;\/tmp\/my_file.txt&#8217;, mode 0600 info: Updated file &#8216;\/tmp\/my_file.txt&#8217; with content &#8216;Hello, CFEngine!<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u306f\u3001CFEngine\u304cHello\u3001CFEngine!\u3068\u3044\u3046\u5185\u5bb9\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308bmy_file.txt\u3092\/tmp\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3057\u305f\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u540c\u3058\u30b3\u30de\u30f3\u30c9\u3092\u518d\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u304a\u3088\u3073\u66f4\u65b0\u306b\u95a2\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002CFEngine\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u304c\u65e2\u306b\u6b63\u3057\u3044\u3053\u3068\u3092\u8a8d\u8b58\u3057\u3001\u5909\u66f4\u3092\u884c\u3044\u307e\u305b\u3093\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3084\u30c6\u30b9\u30c8\u6642\u306b\u306f\u3088\u304f&#8211;no-lock\u3068&#8211;info\u3092\u4e00\u7dd2\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002\u5165\u529b\u3092\u7701\u7565\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002-KI\u306f&#8211;no-lock &#8211;info\u3068\u540c\u7b49\u3067\u3059\u3002<\/div>\n<\/div>\n<p>\u3042\u306a\u305f\u304c\u52d5\u4f5c\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u30dd\u30ea\u30b7\u30fc\u3092\u6301\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u76e3\u8996\u306a\u3057\u3067\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u6b21\u306e\u624b\u9806\u3067\u305d\u308c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d75- \u30dd\u30ea\u30b7\u30fc\u306e\u5b9f\u884c\u3092\u81ea\u52d5\u5316\u3059\u308b\u3002<\/h2>\n<p>\u304a\u305d\u3089\u304f\u3001\u5e38\u306b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u30dd\u30ea\u30b7\u30fc\u3092\u624b\u52d5\u3067\u5b9f\u884c\u3057\u305f\u304f\u306a\u3044\u3067\u3057\u3087\u3046\u3002CFEngine\u306b\u306f\u3001\u305d\u308c\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u81ea\u52d5\u5316\u6a5f\u80fd\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u624b\u9806\u3067\u306f\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4e88\u5b9a\u3055\u308c\u305f\u5834\u6240\u306b\u914d\u7f6e\u3057\u3001JSON\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u3067\u30dd\u30ea\u30b7\u30fc\u30e9\u30f3\u3092\u81ea\u52d5\u5316\u3057\u307e\u3059\u3002JSON\u30d5\u30a1\u30a4\u30eb\u306f\u5b9a\u671f\u7684\u306bCFEngine\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u4f55\u3092\u3059\u308b\u304b\u3092\u4f1d\u3048\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u660e\u793a\u7684\u306b\u624b\u52d5\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u524d\u306e\u624b\u9806\u3067\u4f5c\u6210\u3057\u305f\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u63a8\u5968\u3055\u308c\u308b\u5834\u6240\u306b\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3081\u306b\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">cp<\/span> file_management.cf \/var\/cfengine\/masterfiles\/services\/<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3059\u3079\u3066\u306eCFEngine\u30dd\u30ea\u30b7\u30fc\u306f\u3001\/var\/cfengine\/masterfiles\/\u5185\u306b\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u3001CFEngine\u306b\u4ed8\u5c5e\u3057\u305f\u81ea\u5206\u304c\u66f8\u304b\u306a\u304b\u3063\u305f\u30dd\u30ea\u30b7\u30fc\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30ea\u30b7\u30fc\u3068\u30ab\u30b9\u30bf\u30e0\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u533a\u5225\u3059\u308b\u305f\u3081\u306b\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092services\/\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b\u914d\u7f6e\u3059\u308b\u3053\u3068\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>CFEngine\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u65b0\u3057\u3044\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3059\u308b\u969b\u306b\u306f\u3001\u30cf\u30d6\u4e0a\u306e\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u30b3\u30d4\u30fc\u3057\u307e\u3059\u30021\u53f0\u306e\u30de\u30b7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3067\u3082\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u540c\u69d8\u306e\u65b9\u6cd5\u3067\u6a5f\u80fd\u3057\u307e\u3059\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f \/var\/cfengine\/masterfiles \u306b\u30d5\u30a1\u30a4\u30eb\u3092\u63a2\u3057\u3001\u305d\u308c\u3092 \/var\/cfengine\/inputs \u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u306e\u5834\u5408\u306f\u3001\u3053\u308c\u3089\u306e\u30d1\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u6700\u9069\u3067\u3059\u3002\u30d1\u30b9\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u308a\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4ed6\u306e\u5834\u6240\u306b\u914d\u7f6e\u3059\u308b\u5834\u5408\u306f\u3001\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3084\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3068\u691c\u7d22\u304c\u6b63\u3057\u304f\u6a5f\u80fd\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u3082\u3063\u3068\u4f5c\u696d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u3068\u5b9f\u884c\u3059\u3079\u304d\u30d0\u30f3\u30c9\u30eb\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001\u62e1\u5f35JSON\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/var\/cfengine\/masterfiles\/def.json<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u6b21\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/var\/cfengine\/masterfiles\/def.json \u3092\u65e5\u672c\u8a9e\u306b\u7ffb\u8a33\u3059\u308b\u3068\u300c\u30de\u30b9\u30bf\u30fc\u30d5\u30a1\u30a4\u30eb\u306edef.json\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code><span class=\"token punctuation\">{<\/span>\r\n  <span class=\"token property\">\"inputs\"<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token string\">\"services\/file_management.cf\"<\/span> <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span>\r\n  <span class=\"token property\">\"vars\"<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span>\r\n    <span class=\"token property\">\"control_common_bundlesequence_end\"<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span> <span class=\"token string\">\"manage_my_file\"<\/span> <span class=\"token punctuation\">]<\/span>\r\n  <span class=\"token punctuation\">}<\/span>\r\n<span class=\"token punctuation\">}<\/span>\r\n<\/code><\/pre>\n<p>\u30dd\u30ea\u30b7\u30fc\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u30012\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u5fc5\u8981\u3067\u3059\uff085\u5206\u3054\u3068\u306b\uff09\uff1a\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3064\u3051\u3066\u8aad\u307f\u8fbc\u3080\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u30d0\u30f3\u30c9\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<p>def.json\u306einputs\u30ad\u30fc\u306f\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u3069\u306e\u65b9\u91dd\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u304b\u6307\u793a\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u524d\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u4f5c\u6210\u3057\u305f\u65b9\u91dd\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308bfile_management.cf\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p>vars\u30ad\u30fc\u306f\u5909\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002control_common_bundlesequence_end\u5909\u6570\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30ea\u30b7\u30fc\u3067\u4f7f\u7528\u3055\u308c\u308b\u305f\u3081\u3001\u305d\u3053\u306b\u8ffd\u52a0\u3057\u305f\u30d0\u30f3\u30c9\u30eb\u540d\u306fbundlesequence\u306e\u6700\u5f8c\u306b\u8ffd\u52a0\u3055\u308c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d0\u30f3\u30c9\u30eb\u5168\u3066\u304c\u8a55\u4fa1\u3055\u308c\u305f\u5f8c\u306b\u8a55\u4fa1\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u60c5\u5831\u3092\u5408\u308f\u305b\u308b\u3068\u3001cf-agent\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u3053\u308c\u3089\u306e\u8a2d\u5b9a\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u3069\u306e\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001\u305d\u308c\u3089\u306e\u4e2d\u306e\u3069\u306e\u30d0\u30f3\u30c9\u30eb\u3092\u8a55\u4fa1\u3059\u308b\u304b\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\/var\/cfengine\/masterfiles\/\u5185\u3067\u30dd\u30ea\u30b7\u30fc\u3092\u7de8\u96c6\u3057\u3066\u304a\u308a\u3001\u81ea\u52d5\u5316\u304c\u6b8b\u308a\u3092\u51e6\u7406\u3057\u307e\u3059\u3002\u3088\u308a\u5177\u4f53\u7684\u306b\u306f\u3001cf-agent\u304c\u5b9a\u671f\u7684\u306b\u8d77\u52d5\u3057\u3001\u66f8\u304b\u308c\u305f\u65b0\u3057\u3044\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306f\u30dd\u30ea\u30b7\u30fc\u3092\u8aad\u307f\u8fbc\u307f\u3001\u8a55\u4fa1\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\uff08\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u3084\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210\u306a\u3069\u306e\uff09\u5909\u66f4\u3092\u30de\u30b7\u30f3\u306b\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u793a\u3055\u308c\u3066\u3044\u308b\u30dd\u30ea\u30b7\u30fc\u306b\u57fa\u3065\u3044\u3066\u3001\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u305f\u3073\u306b\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3067\u6307\u5b9a\u3055\u308c\u305f\u5185\u5bb9\u306e\/tmp\/my_file.txt\u304c\u5b58\u5728\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u308b\u3002<\/p>\n<p>\u81ea\u52d5\u5316\u304c\u6a5f\u80fd\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u30dd\u30ea\u30b7\u30fc\u3092\u6700\u521d\u306b\u5b9f\u884c\u3057\u305f\u969b\u306b\u4f5c\u6210\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> \/tmp\/my_file.txt<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\uff15\u5206\u5f8c\u306b\u306f\u3001CFEngine\u304c\u80cc\u5f8c\u3067my_file.txt\u3092\u518d\u4f5c\u6210\u3057\u305f\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/tmp\/my_file.txt<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Hello, CFEngine.<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee3\u308f\u308a\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3092\u65e9\u3081\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 (Kawari ni, fairu no sakusei o hayameru koto mo dekimasu.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">rm<\/span> \/tmp\/my_file.txt <span class=\"token punctuation\">;<\/span> <span class=\"token function\">sudo<\/span> cf-agent <span class=\"token parameter variable\">-Kf<\/span> update.cf <span class=\"token punctuation\">;<\/span> <span class=\"token function\">sudo<\/span> cf-agent <span class=\"token parameter variable\">-KI<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>rm\u30b3\u30de\u30f3\u30c9\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u305f\u3081\u3001CFEngine\u306f\u5909\u66f4\u304c\u5fc5\u8981\u3067\u3042\u308b\u3068\u8a8d\u8b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306ecf-agent\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u66f4\u65b0\u3057\u3001\u305d\u308c\u3092\/var\/cfengine\/masterfiles\u304b\u3089\/var\/cfengine\/inputs\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306ecf-agent\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30dd\u30ea\u30b7\u30fc\u3092\u5b9f\u884c\u3057\u3001\/tmp\/my_file.txt\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4f5c\u6210\u304a\u3088\u3073\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u305f\u76f4\u5f8c\u3067\u3059\u3050\u306b\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u305f\u3081\u3001cf-agent\u306f\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u305f\u3053\u3068\u3092\u8868\u793a\u3059\u308b\u3079\u304d\u3067\u3059\u3002\uff08\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u306e\u9593\u306b\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u5b9f\u884c\u304c\u884c\u308f\u308c\u308b\u53ef\u80fd\u6027\u306f\u307b\u307c\u3042\u308a\u307e\u305b\u3093\u3002)<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u30b3\u30de\u30f3\u30c9sudo cf-agent -Kf update.cf ; sudo cf-agent -KI\u306f\u3001CFEngine\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u30675\u5206\u3054\u3068\u306b\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u306b\u985e\u4f3c\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6b63\u5e38\u306bCFEngine\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308c\u3070\u30015\u5206\u5f85\u3064\u306e\u3068\u540c\u3058\u7d50\u679c\u304c\u5f97\u3089\u308c\u308b\u306f\u305a\u3067\u3059\u3002\u6700\u521d\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u5b9f\u884c\u306f\u30dd\u30ea\u30b7\u30fc\u3092\u66f4\u65b0\u3057\u30012\u756a\u76ee\u306e\u5b9f\u884c\u306f\u30dd\u30ea\u30b7\u30fc\u3092\u8a55\u4fa1\u3057\u3001\u30b7\u30b9\u30c6\u30e0\u3078\u306e\u5909\u66f4\u3092\u884c\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001CFEngine\u3092\u4f7f\u7528\u3057\u3066\u6700\u521d\u306e\u30b7\u30b9\u30c6\u30e0\u7ba1\u7406\u30bf\u30b9\u30af\u3092\u81ea\u52d5\u5316\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u4f8b\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3068\u7de8\u96c6\u306b\u7126\u70b9\u3092\u5f53\u3066\u307e\u3057\u305f\u304c\u3001\u5225\u306e\u30bf\u30b9\u30af\u306e\u30d7\u30ed\u30bb\u30b9\u3082\u540c\u3058\u3067\u3059\u3002\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u3001\u9069\u5207\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3057\u3001def.json\u30d5\u30a1\u30a4\u30eb\u3092\u9069\u5207\u306b\u66f4\u65b0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u4eca\u3001\u3042\u306a\u305f\u306f\u5358\u4e00\u306e\u30b5\u30fc\u30d0\u30fc\u306bCFEngine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002\u6700\u521d\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u4f5c\u6210\u3057\u3001\u81ea\u52d5\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001CFEngine\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3068\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u7ba1\u7406\u306b\u95a2\u3059\u308b\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u300c\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\u3001\u5909\u66f4\u3001\u524a\u9664\u300d\u3092\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u8cea\u554f\u304c\u3042\u308b\u5834\u5408\u3084\u52a9\u3051\u304c\u5fc5\u8981\u306a\u5834\u5408\u306f\u3001CFEngine\u306eGitHub\u30c7\u30a3\u30b9\u30ab\u30c3\u30b7\u30e7\u30f3\u306eQ&amp;A\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u6295\u7a3f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u5bb6\u306f\u3001Write for Donations\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u5bc4\u4ed8\u3092\u53d7\u3051\u308b\u56e3\u4f53\u3068\u3057\u3066Open Internet\/Free Speech Fund\u3092\u9078\u3073\u307e\u3057\u305f\u3002 \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 CFEngine\u306fIT\u30a4\u30f3\u30d5\u30e9\u30b9 [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,60,59],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-60","tag-59"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u30ac\u30a4\u30c9\u3002Linux\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u5171\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u306bcfengine-community-edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248\" \/>\n<meta property=\"og:description\" content=\"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u30ac\u30a4\u30c9\u3002Linux\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u5171\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u306bcfengine-community-edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-17T11:41:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T01:05:43+00:00\" \/>\n<meta name=\"author\" content=\"\u5149, \u660e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5149, \u660e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"26\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-08-17T11:41:28+00:00\",\"dateModified\":\"2025-07-31T01:05:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\"},\"description\":\"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u30ac\u30a4\u30c9\u3002Linux\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u5171\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 &#8211; \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55\",\"name\":\"\u5149, \u660e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g\",\"caption\":\"\u5149, \u660e\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248 - Blog - Silicon Cloud","description":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u30ac\u30a4\u30c9\u3002Linux\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u5171\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u306bcfengine-community-edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248","og_description":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u30ac\u30a4\u30c9\u3002Linux\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u5171\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u306bcfengine-community-edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-08-17T11:41:28+00:00","article_modified_time":"2025-07-31T01:05:43+00:00","author":"\u5149, \u660e","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u5149, \u660e","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"26\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-08-17T11:41:28+00:00","dateModified":"2025-07-31T01:05:43+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55"},"description":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u30ac\u30a4\u30c9\u3002Linux\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3092\u30b3\u30de\u30f3\u30c9\u4f8b\u3068\u5171\u306b\u8a73\u3057\u304f\u89e3\u8aac\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 20.04\u306bCFEngine Community Edition\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 &#8211; \u5b8c\u5168\u30ac\u30a4\u30c92025\u5e74\u7248"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/9ee62cea876d247deba14a0ac7ba5b55","name":"\u5149, \u660e","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dffb6c754b95e3fbdcd8973f4375ff9dd10d41e4f6632ad08d4d59ccc35af8d?s=96&d=mm&r=g","caption":"\u5149, \u660e"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/hikariakira\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%abcfengine-community-edition%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":325637,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/17\/revisions\/325637"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}