Add Node to Rundeck

192 views
Skip to first unread message

Eric Fetzer

unread,
Jan 18, 2019, 3:39:01 PM1/18/19
to rundeck-discuss
Hi!  I'm brand new to rundeck and just starting with the Anvils demo project.  I got it up and going and am trying to create a new project that I can add nodes to.  I created the project but at the beginning, it should have a section in the create that shows where the resources.xml file will live.  It doesn't, but I assume that would just put it in the default location where (/var/rundeck/projects/<projectName>/etc/resources.xml.  Well, I see the anvils project has that file, but not my newly created project.  So, ok, I decided to just add a node to anvils and added a node section to the resources.xml.  Now, all of a sudden, instead of 1 node, I have 5 nodes, none of which I just created.  Can anyone tell me what is going on here?  Thanks!

rac...@rundeck.com

unread,
Jan 18, 2019, 4:20:24 PM1/18/19
to rundeck-discuss
Hi Eric,

You can put the content of your resources.xml file and screenshot of 5 nodes to take a look, please?

Thanks!

Henrique Oliveira

unread,
Jan 18, 2019, 9:02:32 PM1/18/19
to rundeck...@googlegroups.com
eric

if you are with dificult about add node, you can use yaml format. friendly syntax.

--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To post to this group, send email to rundeck...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/055c6313-4cd3-4ac3-8fcd-d724a5d6e753%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Paulo Henrique Oliveira
Tecnologo em Redes de Computadores.
Pos-Graduando em Ciencia de Dados.
IPv6 Hurricane Electric Certified
ITIL Foundation Certified
Dell Sonicwall Appliance Associate Certified

Eric Fetzer

unread,
Jan 22, 2019, 2:11:22 PM1/22/19
to rundeck-discuss
Here are the contents of the anvils resources.xml file:


[vagrant@rundeck etc]$ cat resources.xml
<?xml version="1.0" encoding="UTF-8"?>

<project>
  <node name="localhost" hostname="localhost" username="rundeck"
      description="Rundeck server node." tags=""
      osFamily="unix" osName="Linux" osArch="x86_64" osVersion="3.10.0-514.26.2.el7.x86_64"
      >
    <!-- configure bash as the local node executor -->
    <attribute name="script-exec-shell" value="bash -c"/>
    <attribute name="script-exec" value="${exec.command}"/>
    <attribute name="local-node-executor" value="script-exec"/>
  </node>
</project>


And here are the nodes that show up in the console:

Capture.JPG

Thanks,
Eric

rac...@rundeck.com

unread,
Jan 22, 2019, 3:33:13 PM1/22/19
to rundeck-discuss
Hi Eric,

Maybe your resources.xml path is pointing to resources.xml for another project that has this six nodes.

Please check the file path selecting your project and go to Project Settings > Edit Nodes and see the path in "File Path" (Section "2. File Reads a file containing node definitions in a supported format")

Hope it helps!

Eric Fetzer

unread,
Jan 23, 2019, 10:02:50 AM1/23/19
to rundeck-discuss
Thanks Racuna, that helps.  So what I see is that the anvils project has all of those nodes definied in /var/rundeck/projects/anvils/etc/anvils-nodes.yaml.  However, when I look in the "Edit Nodes" for my TestProj that I created, there is no "Section 2".  Would this mean there's something wrong with that demo project?  I've built a real world server now but haven't created a project yet.  I was waiting to resolve this and figure out how to talk to one of my nodes and such...



On Friday, January 18, 2019 at 1:39:01 PM UTC-7, Eric Fetzer wrote:

rac...@rundeck.com

unread,
Jan 23, 2019, 10:18:12 AM1/23/19
to rundeck-discuss
Hi Eric,

For that select your new project and go to Project Settings > Edit Nodes > Click on "Configure Nodes" button (up to right) > Click on "Add Sources +" Button > Select "+ File" option > in "Format" field select resourcexml and  fill the path in "File Path" field (put the file name at the end, usually "resources.xml"), then  select "Generate", "Include Server Node" and "Writeable" checkboxes and click on "Save" button.

Greetings!

Eric Fetzer

unread,
Jan 23, 2019, 10:51:14 AM1/23/19
to rundeck-discuss
There it is, THANKS Racuna!  You rock!


On Friday, January 18, 2019 at 1:39:01 PM UTC-7, Eric Fetzer wrote:
Reply all
Reply to author
Forward
0 new messages