#theforeman

/

      • TommyTheKid joined the channel
      • thefynx has quit
      • TommyTK joined the channel
      • blinky42 joined the channel
      • TommyTheKid has quit
      • TommyTK has quit
      • thefynx joined the channel
      • Toggi3 has quit
      • cfoo has quit
      • Toggi3 joined the channel
      • cfoo joined the channel
      • Reepicheep joined the channel
      • TommyTheKid joined the channel
      • phileas joined the channel
      • TommyTheKid has quit
      • thefynx has quit
      • TommyTheKid joined the channel
      • TommyTheKid has quit
      • thefynx joined the channel
      • ChrisJames02170 joined the channel
      • HalfEatenPie joined the channel
      • TommyTheKid joined the channel
      • jyejare joined the channel
      • jyejare has quit
      • jyejare joined the channel
      • shlomizadok joined the channel
      • ranjank has quit
      • shlomizadok has quit
      • gmccullo_ has quit
      • ranjank joined the channel
      • hprakash joined the channel
      • amitKarsale joined the channel
      • hprakash has quit
      • AshishH joined the channel
      • swap_a_b joined the channel
      • jyejare_ joined the channel
      • hprakash joined the channel
      • jyejare has quit
      • mhulsman joined the channel
      • kavita joined the channel
      • swap_a_b has quit
      • jyejare_ has quit
      • swap_a_b joined the channel
      • fimbu has quit
      • fimbu joined the channel
      • felskrone joined the channel
      • felskrone has quit
      • felskrone joined the channel
      • sjagtap_ joined the channel
      • sjagtap_ has quit
      • sjagtap joined the channel
      • swap_a_b has quit
      • swap_a_b joined the channel
      • swap_a_b has quit
      • chewable joined the channel
      • swap_a_b joined the channel
      • sghai joined the channel
      • _nono_ joined the channel
      • wizard113__ joined the channel
      • KAM joined the channel
      • shimshtein joined the channel
      • toi joined the channel
      • rcernin joined the channel
      • TKersten joined the channel
      • smeyer joined the channel
      • __endy__ joined the channel
      • Snickers joined the channel
      • bkorren joined the channel
      • tbrisker joined the channel
      • AshishH_ joined the channel
      • ceegee joined the channel
      • ceegee
        good morning
      • dLobatog
        ceegee: o/
      • ceegee
        dLobatog: ??
      • dLobatog: whats going on?
      • dLobatog
        it's meant to be a person waving, the 'o' is the head
      • ceegee
        ah :)
      • outi joined the channel
      • tremble joined the channel
      • hm, the foreman hooks are still a bit strange to me. I need to create a post-install script for a specific type of host (XenServer) with host-specific information in it. I created /usr/share/foreman/config/hooks/host/managed/create/01_test.sh and rebuilt a host, but the hook was not executed. the plugin foreman_hooks seems to be installed correctly, because its listed in the plugins in foreman ui.
      • jrist joined the channel
      • jyejare joined the channel
      • ade_b joined the channel
      • any hints? maybe the hook is not working if a system already exists and I just rebuild it?
      • Dominic
        rebuilding isn't creating, there are build (after_build/before_provision) hooks for that, see the docs
      • jrist has quit
      • ceegee
        Dom
      • D
      • fgfff
      • sorry
      • little network outage
      • josephmagen joined the channel
      • cartik joined the channel
      • smartpig joined the channel
      • Dominic: I have read the docs (https://github.com/theforeman/foreman_hooks) but in my opinion it lacks some information. for example host/managed/create, at which point of creating / provisioning a host I have reached this state? This document is only helpful if you already know something about the topic.
      • Dominic
        when you press "Submit" on the new host form
      • ceegee
        Dominic: okay, so it would be helpful if the docs contain a list with exactly this information, e.g. state create is reached when pressing submit ....
      • anyway
      • jyejare has quit
      • smartpig joined the channel
      • attachmentgenie joined the channel
      • lzhou joined the channel
      • manual execution of the hook works fine, but on creating a new host in the UI it doesnt
      • devmodem joined the channel
      • raphink joined the channel
      • klaas__ joined the channel
      • klaas__
        can I safely assume that foreman-installer takes care of the changes in rpmnew files or do I need to review them all on a 1.11 -> 1.12 and katello 3.0 -> 3.1 update?
      • lzhou
        i've noticed that on a clean installation of katello 3.1, the "foreman-rake katello:reindex" command is no more present. Is it normal?
      • dLobatog
        lzhou: it was renamed to katello:reimport
      • lzhou
        dLobatog: ah ok, so the katello:reimport does the same things as the katello reindex? why was renominated then?
      • therm_ joined the channel
      • jaroug has quit
      • dLobatog
        lzhou: I'm not sure why it was renamed, sorry. this is where it was added. https://github.com/Katello/katello/pull/6192
      • therm_
        Hey guys, facing a problem importing environments/classes in 1.12.3 with puppet 4.7.0. Foreman-Proxy gets a ([RestClient::NotAcceptable]: 406 Not Acceptable) message and Puppetmaster.log says: Puppet Denying access: Forbidden request: /puppet/v3/resource_type/* [search]
      • Dominic
        therm_: https://theforeman.org/manuals/1.12/index.html#... shows the auth.conf changes required to permit access
      • therm_
        but /etc/puppetlabs/puppetserver/conf.d/auth.conf contains this one : {
      • match-request: {
      • path: "/puppet/v3/resource_type"
      • type: path
      • method: [get, post]
      • }
      • allow: "*"
      • sort-order: 500
      • name: "puppetlabs resource type"
      • },
      • Dominic
        please use a pastebin for lots of text. It's possible then that you're not using the HOCON file, it isn't the default.
      • ceegee
        hmm, my hook is still not working :(
      • lzhou
        DLobatog: thanks for the help and the link :)
      • ceegee
        what is the difference between host/base and host/managed? I can not find any docs with descriptions of that
      • Dominic
        host/base is a parent of host/managed. I wouldn't suggest using it.
      • ceegee
        actually I have a very simple script located in host/managed/update
      • I exepected that this script will be executed when I edit a host and change the comment for example
      • Finished discovering 1 hooks for Host::Managed#update
      • at least this looks okay, but I can not figure out why nothing happens
      • Na3iL joined the channel
      • Daneel joined the channel
      • bkorren has quit
      • the directory structure under hooks belongs to foreman:foreman, just like the script itself which is executeable of course
      • rplevka joined the channel
      • mhulsman1 joined the channel
      • oshtaier joined the channel
      • Dominic: do I misunderstand the usage of the hook and host/managed/update? it would be great to get it working
      • Dominic
        no
      • ceegee
        do you have any hints what else I can look for?
      • orabin joined the channel
      • __endy__ has quit
      • Dominic
        read the logs and recheck your configuration
      • bkorren joined the channel
      • lero joined the channel
      • sean797 joined the channel