Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 18 2017 22:37

    shoekstra on use_nginx

    (compare)

  • Sep 18 2017 22:37

    tas50 on master

    Depend on nginx instead of chef… Use nginx >= 7.0 Merge pull request #552 from so… (compare)

  • Sep 18 2017 22:37
    tas50 closed #552
  • Sep 18 2017 22:14
    shoekstra synchronize #552
  • Sep 18 2017 22:14

    shoekstra on use_nginx

    Use nginx >= 7.0 (compare)

  • Sep 18 2017 22:12
    shoekstra commented #551
  • Sep 18 2017 22:11
    shoekstra commented #552
  • Sep 18 2017 22:11
    shoekstra commented #552
  • Sep 18 2017 22:09
    shoekstra closed #546
  • Sep 18 2017 22:09
    shoekstra commented #546
  • Sep 18 2017 22:06
    shoekstra synchronize #552
  • Sep 18 2017 22:06

    shoekstra on use_nginx

    Depend on nginx instead of chef… (compare)

  • Sep 18 2017 22:03
    shoekstra review_requested #551
  • Sep 18 2017 22:01
    shoekstra synchronize #551
  • Sep 18 2017 22:01

    shoekstra on release_8.0.0

    Release 8.0.0 (compare)

  • Sep 18 2017 22:00
    shoekstra review_requested #552
  • Sep 18 2017 22:00
    shoekstra review_requested #552
  • Sep 18 2017 22:00
    shoekstra opened #552
  • Sep 18 2017 21:59

    shoekstra on use_nginx

    Depend on nginx instead of chef… (compare)

  • Sep 18 2017 21:57
    shoekstra review_requested #551
Ken Schmidt
@Maigard
Ok, I will keep an eye on it occasionally during the conference.
Are you going to do a release in the meantime?
Sander Botman
@sbotman
I was thinking of doing that yes...
Ken Schmidt
@Maigard
ok.
Sander Botman
@sbotman
and leave this open for the next release..
Ken Schmidt
@Maigard
That sounds good.
Sander Botman
@sbotman
oke...
Thanks for your time..
Lets chat next week...
Ken Schmidt
@Maigard
thanks for looking at it.
Ilja Krauchanka
@ikrauchanka
guys, how I can include configs with legacy hosts/services which I prefer do not convert into chef cookbook?
Sander Botman
@sbotman
you mean that you have old config that you want to load that are not part of the generated templates?
Ilja Krauchanka
@ikrauchanka
yes
configs were populated in chaotic type, and I do not possibilities and time on converting them into chef definitions. So I decided just merge them into one file and include the file from nagios cookbook generated configs.
Sander Botman
@sbotman
currently chef is cleaning up the conf.d directory. It's zapping all files that don't belong to the nagios cookbook configuration... You will need to disable this if you want to add extra configuration files next to the one that are created by the cookbook
Sander Botman
@sbotman
@karnold what kind of hostgroups do you have?
Kristen Arnold
@karnold
i havent configured any hostgroups specifically, it looks like it has autogenerated groups for my various roles configured in chef
Sander Botman
@sbotman
oke, but what does the hostgroup file contain currently?
Kristen Arnold
@karnold
# $Id: Generated by chef for node: devops
# ----------------------------------------------------------------
# NOTE: This file is controlled by chef templates!
# Do not edit or change this file but change the following:
# template file : hostgroups.cfg.erb
# ----------------------------------------------------------------
# Hostgroup definitions
# ----------------------------------------------------------------

define hostgroup {
  hostgroup_name all
  alias all
  members *
}

define hostgroup {
  hostgroup_name  general
  members         chef,devops,elk,jira
}

define hostgroup {
  hostgroup_name  linux
  members         chef,devops,elk,jira
}

define hostgroup {
  hostgroup_name  monitoring
  members         devops
}

define hostgroup {
  hostgroup_name  production-admin
  members         chef,devops,elk,jira
}
Sander Botman
@sbotman
oke, so the new node is not a member of any role within chef
and it's still in the _default environment I guess...
on the other hand... it should have been a member of the hostgroup linux....
so that's a bit strange
Kristen Arnold
@karnold
it is not in the default environment, but it is in the general role with the other servers
Sander Botman
@sbotman
oke.. that's indeed strange
Kristen Arnold
@karnold
yeah, seemed strange to me as well.
Sander Botman
@sbotman
can you remove the 'register' => 0, from your options
Kristen Arnold
@karnold
sure, uno momento
well. that looks better, but still strange. Now it created a new entry for all 5 servers. but it did include albers like it was supposed to, it also added new records for all machines using the full domain name. and it did not register any of the servers for the host in question
maybe delete the config and try again?
Sander Botman
@sbotman
the configuration it created every run..
no need to delete anything...
Kristen Arnold
@karnold
ah ok
Sander Botman
@sbotman
but I guess it has something to do with your population of the nodes and the loop...
Kristen Arnold
@karnold
the hostgroup.cfg looks the same
Sander Botman
@sbotman
the same as before you mean..
Kristen Arnold
@karnold
right
hosts.cfg was updated. but hostgroups.cfg looks the same as when register was being defined in the recipe
Sander Botman
@sbotman
ok
I guess you have also the default configuration active..
or did you disable this one?
Kristen Arnold
@karnold
hmm, i dont think so. what should be defined?
should i define the default-host template as well?
Sander Botman
@sbotman
But that might need some updating..
The default configuration should load the chef config and add all nodes to nagios
it should create hostgroups of all the roles/environments/os'es
Kristen Arnold
@karnold
ah ok. so i should be able to set this up and not have to define the host in the loop i am using right?
Sander Botman
@sbotman
No, unless you want to create the nagios configuration yourself...
and create funky exceptions or other.... then you can disable the default configuration