#puppet

/

      • c^ has quit
      • c^ joined the channel
      • c0 has quit
      • szymek_ has quit
      • Bluefoxicy
        nm I found instructions in a config file that was replaced during an upgrade
      • Bluefoxicy has left the channel
      • madmartin has quit
      • spvensko joined the channel
      • aiRness_ joined the channel
      • Guina2e690e1Guin joined the channel
      • Guina2e690e1Guin has left the channel
      • aiRness has quit
      • Deesl joined the channel
      • ZoanthusR joined the channel
      • jasonc has quit
      • jasonc_ joined the channel
      • nuncanada joined the channel
      • djallits has quit
      • Deesl has quit
      • YamakasY
        is best not to loop through a hash on $name in a template ?
      • weird things happen here when I do so
      • yo61
        is best to pastebin your code
      • jowr
        people get crazy mad when you paste even 3 lines in here
      • its kinda funny
      • YamakasY
        yo61, yeah need to check what I can past, some stuff is working tho
      • *paste
      • jbarnett joined the channel
      • jowr, when high traffic it´s kinda annoying
      • yo61
        What's funny, is when people try to describe what they have done/what is happening, instead of just showing us real code/results
      • jowr
        what's funny is i've gotten rage for pasting shit in here when it was silent for hours
      • yo61
        It's called etiquette
      • YamakasY
        yo61, I can actually use some template from Volcane http://pastie.org/9847304# when let´s say I only backend and host so backend would be $name and host would be some value... should I be able to do a gsub on name ? I get an array error
      • jowr
        MUH IRC BEHAVIOR
      • so very important
      • yo61
        etiquette *is* important, wherever you are
      • YamakasY
        jowr, nah paste is kinda good to do not in the channel, people that say you ask wrong questions do suck more
      • jowr
        ya i know its just funny how i've managed to make people mad over the most trivial of things
      • YamakasY
        a question is a quesion, people can ask for more detail, but if someone doesn\ t have any, people should behave and ask if he sees what comes to mind to them
      • jowr
        i do not get along with authoritarian mindsets
      • where obeying rules is more important than anything
      • tobamai has quit
      • yo61
        purrrleease spare me
      • YamakasY
        we got banned last week because were were discussing in #Ubuntu about someone that installed Ubuntu on a rasp... some op didn´t believe and poef banned
      • that is an op that wants to answer before the question and makes high traffic to ¨see himself¨
      • yo61
        What was your puppet question?
      • jowr
        oh i got banned from #gentoo because i reacted poorly at being called a liar for saying btrfs ate my data
      • YamakasY
        I don´t care about such people anymore, that channel is damn n00bish anyway
      • yo61, you see that example ?
      • yo61
        Yup
      • jowr
        i've never been able to square why you can imply someone is dishonest but focus on the person who was called a liar when they get mad
      • jowr scratches his head
      • YamakasY
        okay, I have like the same, but only backend and host... but I want to gsub backend so I do a name.map{} which doesn´t seem to be liked
      • yo61
        What's funny, is when people try to describe what they have done/what is happening, instead of just showing us real code/results
      • YamakasY
        backend = $name
      • jowr
        puppet's data manipulation abilities are a bit weak
      • you might have to use an inline template and real ruby
      • YamakasY
        yo61, yeah I need to rebuild that one
      • yo61, my quesion actually is more simple, do I always need something like group ?
      • yo61
        I can't help if you don't show me code
      • Let me rephrase that
      • dkr joined the channel
      • I can't help if you don't show me THE ACTUAL CODE YOU ARE HAVING A PROBLEM WITH
      • YamakasY
        yo61, yeah that actualy code is in build :D
      • and not as I like it... just a sec
      • jowr
        i find that talking about problem code is almost as effective as showing the problem code
      • wait
      • that's not right
      • jowr thinks
      • YamakasY
        jowr, collaboration is always good
      • but diehard coders like code more as they live in code
      • not a proble, but if you have people that do more than code there can be some misunderstanding... mostly the people that do less code need to rtfm like me, but I mostly already did and the same question remains
      • landypro has quit
      • yo61
        It's not a case of "liking code more"
      • You have a problem. It is with your code.
      • YamakasY
        yo61, I think it is, some people have enough using a half word, like me most of the time
      • dkr has quit
      • yo61
        The most effective way for you to get help with it is to share it
      • YamakasY
        yap
      • busy
      • barthoda has quit
      • buddhaphomet has quit
      • jasonc_ is now known as jasonc
      • I wonder why it says array
      • jowr
        couldn't you just do this with an inline template
      • if all you are doing is splitting up the domain
      • also just to be an asshole, what about *.co.uk domains
      • YamakasY
        doesn´t matter, I need to replace the dots
      • yo61
        That's incomplete
      • aiRness_ is now known as aiRness
      • YamakasY
        yo61, that might be the issue than
      • oh I see
      • yo61
        I mean, you're not showing me the whole template, or the whole code
      • YamakasY
        you mean define ?
      • o_be_one joined the channel
      • no, I´m testing this out, I minified my code
      • that define, ensure_ is just the file with the template under it
      • nothing more
      • the create resources works OK
      • yo61
        All you've done there is that instead of trying to describe what you're doing here, you've put it all in a pastebin
      • YamakasY
        yo61, as you asked
      • jowr goes back to watching lava videos on youtube
      • yo61
        No, I asked you to show me THE ACTUAL CODE YOU ARE HAVING A PROBLEM WITH
      • YamakasY
        lava ?
      • yo61, that is this! I can only add the define for the template file
      • nothing more
      • I added the create resources as I never use it like that, but to show you what i will do in the end
      • yo61, the only question I have, why does it complain about an array ?
      • MilesDenver has quit
      • yo61
        Look at your original pastie (from Volcane did you say?): http://pastie.org/9847304#
      • The template code is complete
      • jowr tries mysql workbench
      • buddhaphomet joined the channel
      • jowr
        someone suggested it as an alternative to phpmyadmin
      • YamakasY
        jowr, nice to have
      • yo61, huh why ? this is my code
      • yo61
        Why what?
      • YamakasY
        yo61, I wonder, the only thing, if I can loop trhough $name in my template
      • as that is the issue I thijnk
      • *think
      • jowr
        in short, no you can't
      • $name is a string
      • YamakasY
        jowr, I already thought that
      • but wasn´t sure anymroe
      • jowr
        i am
      • YamakasY
        *anymore
      • hehe
      • jowr
        puppet gets mad if you try shit like putting a hash in
      • YamakasY
        so it sees an array in a string, or tries to
      • jowr
        i was playing games with abusing weak typing and moving from ruby 1.8 to 1.9 called me out on my bullshit and i had to write in a less stupid way
      • YamakasY
        jowr, so better have a domains: domain1: detail: foo
      • barthoda joined the channel
      • yo61
        OK, let's start again
      • dkr joined the channel
      • jowr
        WHAT ARE YOU TRYING TO DO
      • jowr waits for the long meandering explanation that doesn't answer the question
      • YamakasY
        loop through all domains
      • but as $name
      • yo61
        Show me 1. what input you have, 2. what you want the output to look like
      • jowr
        and what is "all domains"
      • YamakasY
        yo61, erm the input is like in there
      • jowr
        i have this problem, i solved it by putting that shit into mysql and accessing it via hiera
      • i loop through hiera_array
      • yo61
        OK, so we're 50% there...
      • YamakasY
        I hope so :)
      • dino82 has quit
      • yo61
        (I presume we're talking about lines 13-16)
      • Now show me what you want the output to look like
      • YamakasY
        yap
      • yo61
        Do you have that data in a variable?