官术网_书友最值得收藏!

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

include puppet

Puppet::Reports::register_report(:myfirstreport) do
  desc "My very first report!"

  def process
    if self.status == 'failed'
      msg = "failed puppet run for #{self.host} #{self.status}
      File.open('./tmp/puppetpanic.txt', 'w') { | f | f.write(msg)}
    end
  end
end

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

metric_vals = {}

      self.metrics.each { |metric, data|
        data.values.each { |val|
          name = "#{val[1]} #{metric}"
          value = val[2]
          metric_vals[name] = value
        }
      }

Any command-line input or output is written as follows:

puppet module generate <username>-<modulename>

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "The Facts view is particularly useful as it not only lists each node with the associated fact value, but also presents it neatly in the form of a graph."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 神农架林区| 双辽市| 奉贤区| 建昌县| 托克逊县| 武功县| 恩施市| 棋牌| 高安市| 南部县| 栾城县| 齐河县| 横山县| 正蓝旗| 当阳市| 茌平县| 阳山县| 乌鲁木齐县| 萍乡市| 芦溪县| 蛟河市| 望都县| 金湖县| 泰和县| 安福县| 无为县| 海伦市| 饶河县| 延川县| 邵阳县| 玉林市| 政和县| 凌云县| 合水县| 广宁县| 岳池县| 资源县| 木兰县| 延庆县| 曲麻莱县| 敦煌市|