Upgrade to Pro — share decks privately, control downloads, hide ads and more …

large td-agent.conf with Chef

kenjiskywalker
December 13, 2013

large td-agent.conf with Chef

kenjiskywalker

December 13, 2013
Tweet

More Decks by kenjiskywalker

Other Decks in Technology

Transcript

  1. large td-agent.conf
    with Chef
    @kenjiskywalker

    View full-size slide

  2. Is only one
    configuration file used?
    td-agent.conf

    View full-size slide

  3. Include Directive

    View full-size slide

  4. Include Directive
    on Chef cookbook

    View full-size slide

  5. td-agent
    cookbook
    recipe

    View full-size slide

  6. /td-agent/recipes/default.rb

    View full-size slide

  7. /td-agent/recipes/default.rb

    View full-size slide

  8. /s3cmd/recipes/default.rb

    View full-size slide

  9. /s3cmd/templates/
    default/_s3cfg.erb

    View full-size slide

  10. /td-agent/recipes/default.rb

    View full-size slide

  11. /td-agent/templates/
    default/td-agent.conf.erb
    glob͸includeͷॱ൪΍ಡΈࠐΜͰ͸͍͚ͳ͍configͳͲ
    ಡΈࠐΜͰ͠·͏Մೳੑ͕͋ΔͷͰɺݸผͰࢦఆͨ͠ํ͕ྑ͍

    View full-size slide

  12. /td-agent/recipes/default.rb

    View full-size slide

  13. /td-agent/recipes/
    default/nginx.conf

    View full-size slide

  14. /td-agent/recipes/
    default/nginx-s3.conf

    View full-size slide

  15. /td-agent/recipes/
    default/default.conf

    View full-size slide

  16. - include directive @fluent
    - include_recipe @Chef
    very simple ;)
    +

    View full-size slide