Giter VIP home page Giter VIP logo

Comments (20)

liamjbennett avatar liamjbennett commented on September 24, 2024
rundeck::auth_config:
  file:
    auth_users:
      - username: 'puppet'
        password: 'puppet'
        roles:
          - user
          - admin
          - architect
          - deploy
          - build
  active_directory:
    server: 'server-01.corp.company.com'
    bind_dn: 'CN=x,CN=Users,DC=corp,DC=company,DC=com'
    bind_password: 'notTheRealPassword'
    user_base_dn: 'DC=corp,DC=company,DC=com'
    role_base_dn: 'DC=corp,DC=company,DC=com'

from puppet-rundeck.

ozbillwang avatar ozbillwang commented on September 24, 2024

This works for me, thanks @liamjbennett

Could you please provide the same for rundeck::plugin::name and rundeck::plugin::source?

Can you paste a total sample of hiera yaml file and checkin the repository for future reference? it will save a lot of time for others who need to use this puppet module.

from puppet-rundeck.

liamjbennett avatar liamjbennett commented on September 24, 2024

Yes, the README does need further examples and I will keep this issue open until I have written some

from puppet-rundeck.

ozbillwang avatar ozbillwang commented on September 24, 2024

Thanks @liamjbennett, waiting for the updates.

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

I am also not able to create a project through yaml. Can somebody provide an example? 'puppet module install' downloads version 1.2.0 on my machine.
I found the following in project.pp

# rundeck::config::project { 'test project':
#  ssh_keypath            => '/var/lib/rundeck/.ssh/id_rsa',
#  file_copier_provider   => 'jsch-scp',
#  node_executor_provider => 'jsch-ssh',
#  resource_sources       => $resource_hash
# }

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

??

from puppet-rundeck.

igalic avatar igalic commented on September 24, 2024

@ltutar puppet module install what?

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

I just want to know why

class rundeck_config::config {
   rundeck::config::project { 'PetClinicProject':
   }
}

works,

Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/File[/var/rundeck/projects/PetClinicProject]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/File[/var/rundeck/projects/PetClinicProject/var]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/File[/var/rundeck/projects/PetClinicProject/etc]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/File[/var/rundeck/projects/PetClinicProject/etc/project.properties]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/Ini_setting[PetClinicProject::project.name]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/Ini_setting[PetClinicProject::project.ssh-authentication]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/Ini_setting[PetClinicProject::project.ssh-keypath]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/Ini_setting[PetClinicProject::service.FileCopier.default.provider]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/Ini_setting[PetClinicProject::service.NodeExecutor.default.provider]/ensure: created
Notice: /Stage[main]/Rundeck_config::Config/Rundeck::Config::Project[PetClinicProject]/Ini_setting[PetClinicProject::service.NodeExecutor.default.provider]/ensure: created
Notice: Applied catalog in 61.05 seconds

and through yaml as

rundeck::projects:
  testproject:

does not work.

Notice: /Stage[main]/Rundeck::Service/Service[rundeckd]/enable: enable changed 'false' to 'true'
Notice: /Stage[main]/Logstashforwarder::Service/Logstashforwarder::Service::Init[logstash-forwarder]/Service[logstash-forwarder]/enable: enable changed 'false' to 'true'
Notice: Applied catalog in 1.02 seconds

from puppet-rundeck.

jyaworski avatar jyaworski commented on September 24, 2024

@ltutar hi! This is because each project needs to be a hash at this time. This line shows the logic:

https://github.com/puppet-community/puppet-rundeck/blob/master/manifests/config.pp#L155

You could try the following:

rundeck::projects:
  testproject: {}

I am also not sure when the last time we had a forge release. Have you tried the git version?

from puppet-rundeck.

jyaworski avatar jyaworski commented on September 24, 2024

@ltutar can you paste your modified YAML block?

@liamjbennett we really need to solve the function loading thing. :/ One of those PRs should get accepted.

from puppet-rundeck.

jyaworski avatar jyaworski commented on September 24, 2024

@ltutar did you lose formatting? Could you either wrap your output in the code example from here?

https://guides.github.com/features/mastering-markdown/

If it's just not doing anything, the chances are that you need to use the git version, as the feature was added fairly recently.

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

Downloading the latest git version made the following yaml work. Thank you all for your help

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

Can somebody help me to yaml the following?

  rundeck::config::project { 'PetClinicProject':
    resource_sources => {
      'PetClinicProject' => {
        project_name        => 'PetClinicProject',
        source_type         => 'directory',
        directory           => '/opt/rundeck/nodes',
        include_server_node => false,
        resource_format     => 'resourcejson',
      }
    }
  }

from puppet-rundeck.

jyaworski avatar jyaworski commented on September 24, 2024

@ltutar github is not designed for this kind of question. I would try StackOverflow in the future.

You may also want to look at this link:

https://docs.puppetlabs.com/hiera/1/complete_example.html#kermitexamplecomyaml

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

Ok.

from puppet-rundeck.

jyaworski avatar jyaworski commented on September 24, 2024

@liamjbennett is this issue solved? Can it be closed?

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

I still do not have the answer for yaml. But as I am told github is not the place for these kind of questions, the issue may be closed.

from puppet-rundeck.

ozbillwang avatar ozbillwang commented on September 24, 2024

@liamjbennett

Do you think I can close this ticket? You marked it with enhancement label on May 29, and I am still waiting the updates.

from puppet-rundeck.

ltutar avatar ltutar commented on September 24, 2024

I now have the yaml file. I will post it here for the other users.

  rundeck::config::project { 'PetClinicProject':
    ssh_keypath             => '/opt/rundeck/key/insecure_private_key',
    resource_sources => {
      'PetClinicProject' => {
        project_name        => 'PetClinicProject',
        source_type         => 'directory',
        directory           => '/opt/rundeck',
        include_server_node => false,
        resource_format     => 'resourcejson',
      }
    }
  }
rundeck::projects:
  PetClinicProject:
    ssh_keypath: '/opt/rundeck/key/insecure_private_key'
    resource_sources:
      PetClinicProject:
        project_name: 'PetClinicProject'
        source_type: 'directory'
        directory: '/opt/rundeck'
        include_server_node: false
        resource_format: 'resourcejson'

from puppet-rundeck.

ozbillwang avatar ozbillwang commented on September 24, 2024

@ltutar 👍 thanks for sharing.

from puppet-rundeck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.