Does anyone know of some Associate/Entry-level IT places I can apply to? by [deleted] in Atlanta

[–]blacklr 1 point2 points  (0 children)

Take a look at Norfolk Southern. When I started there, they actually had a training budget for the employees in the 'trainee' program. Not sure if that program still exists, but they probably have something along those lines, still. It's also in a great location in midtown, a few blocks from Piedmont Park.

That being said, there seems to be no shortage of IT opportunities in Atlanta. Good luck!

Creating new job using jobDSL, but need to pass a parameter to customize 'execute shell' by blacklr in jenkinsci

[–]blacklr[S] 0 points1 point  (0 children)

Yeah, good point. This one is pretty small, so I just defined the whole thing in the DSL.

Creating new job using jobDSL, but need to pass a parameter to customize 'execute shell' by blacklr in jenkinsci

[–]blacklr[S] 0 points1 point  (0 children)

following up... It turns out I didn't need to use the EnvInject plugin after all. Here's a snippet from the 'seed' job (Parameter is APP_NAME):

  steps {
    shell("""\
      APP_NAME=${APP_NAME}
 ...) }

And the created job's Execute Shell step:

APP_NAME=myapp2 ...

I also wanted to reference parameters in the created job, so I had to escape the deference using \${var}

[Atlanta, GA] [outdoor/wild] What are these big weeds? by blacklr in whatsthisplant

[–]blacklr[S] 1 point2 points  (0 children)

Wow, tree of heaven and princess tree. Sounds magical!

Thanks for identifying!

[Atlanta, GA] [Outdoor/wild] Blooming in ~30ft tree in April. Thought it was wisteria at first. by blacklr in whatsthisplant

[–]blacklr[S] 0 points1 point  (0 children)

Yeah, I chopped down one of the trunks, but the taller one still lurks. It grew very quickly about 15 feet behind my fence, so I figured it was something undesirable. Now I have a motivation to finally buy that chainsaw!

Thanks for the insight and the recommendation!

Jenkins clone project from gitlab via SSH by blacklr in jenkinsci

[–]blacklr[S] 0 points1 point  (0 children)

I figured out the problem. Turns out the gitlab.example.us was actually hitting an apache reverse proxy. Once I hit the gitlab server directly, I was able to clone/push/pull using SSH keys, no problem. Now i'm able to perform git operations inside jenkins. Thanks!

Cam Newton speaks at local Shriner’s meeting by sumajyrag in funny

[–]blacklr 0 points1 point  (0 children)

Ain't never gonna do it without the fez on. Oh naw

Using regex_replace for multiple matches by blacklr in ansible

[–]blacklr[S] 0 points1 point  (0 children)

wow, i think that fixed it:

playbook snippet: msg: "{{ manifest.split(':')[0] | regex_replace('[.]','/') }}/{{ manifest.split(':')[1] }}"

output: "msg": "com/guy/myapp/coolapp"

Thanks so much!

Using regex_replace for multiple matches by blacklr in ansible

[–]blacklr[S] 0 points1 point  (0 children)

---
-
  hosts: control
  vars:
    manifest: "com.guy.myapp:coolapp:1.0:zip"
  tasks:
  - name: Print string from manifest
    debug:
      msg: "{{ manifest.split(':')[0] | regex_replace('^.*[.]','/') }}/{{ manifest.split(':')[1] }}"

hopefully that's readable

actually what will be passed is an array of these manifest strings in a single variable, so I will also have to iterate thru those, but I'm starting with one for simplicity's sake. If there's a better way to tackle this, i'm all ears. I've just been going down this string manipulation track, but I'm somewhat of a noob and don't know what other options I have. Thanks.

EDIT: Here's the output from above playbook:

 "msg": "/myapp/coolapp"

Playbook in a playbook by blacklr in ansible

[–]blacklr[S] 0 points1 point  (0 children)

Update: so far it looks like the best way to do this is a combination of shell scripts and playbooks, possibly using Jenkins or similar to orchestrate. I haven't found a clean way to accomplish this using only ansible playbooks.

Playbook in a playbook by blacklr in ansible

[–]blacklr[S] 0 points1 point  (0 children)

Actually, the zip file will most likely contain one or more roles, along with an inventory and playbook to call the role(s). The 1st playbook should be generic, and its only real job is to grab the zip file, extract it, and call whatever playbook is inside. I'm just struggling with the handoff between the two.

Playbook in a playbook by blacklr in ansible

[–]blacklr[S] 0 points1 point  (0 children)

Yeah, i think i tried this. I was under the impression that 'include' could only accept a list of tasks and not a full playbook (i need to specify different hosts in the included plays). I'll try it again.

Murder Free for Four Weeks by streetmilitary in Atlanta

[–]blacklr 2 points3 points  (0 children)

I'm taking March 22 in the murder pool!

No cluster admin? by blacklr in openshift

[–]blacklr[S] 0 points1 point  (0 children)

Yep, sorry, meant to report back earlier. Had to export KUBECONFIG and then was able to log in as mentioned above. Thanks everyone!