6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Puppetの --detailed-exitcodes オプション

Posted at

--detailed-exitcodes というオプションを puppet apply の際に渡すと便利らしい。

--detailed-exitcodes

Provide transaction information via exit codes. If this is enabled, an exit code of '2' means there were changes, an exit code of '4' means there were failures during the transaction, and an exit code of '6' means there were both changes and failures.

つまり、

  • 変更がなくエラーもなければ 0 で終了する。
  • 変更があれば 2 で終了する。
  • なにも変更が無く、エラーがあった場合 4 で終了する。
  • 何かが変更されてエラーもある場合は 6 で終了する。

逆にCIの時は 2 で終了した場合でもハンドルしとかないといけない。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?