Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P puppet-freeipa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • AdullactAdullact
  • puppet-freeipa
  • Merge requests
  • !120

Allow `--force-join` option to be configured via class parameter

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Vinicius Zavam requested to merge egypcio/puppet-freeipa:add-force-join-option into master Oct 20, 2020
  • Overview 16
  • Commits 1
  • Pipelines 17
  • Changes 3

By merging this request we will be able to:

  • set the @force_join parameter in our class' settings;
  • pass --force-join option to the ipa-client-install
  • allow to override host entry on the server and force client enrollment;
  • make use of this Role in STAGE or DEV environments (or Pipelines).

The use case behind this merge request is:

As a sysadmin using puppet-freeipa, I want to be able to fully enroll a STAGING environment with client machines without the need of setting an IPA server up or resetting its clients' entries.

Latest PIPELINE before the creating of this MR: https://gitlab.adullact.net/egypcio/puppet-freeipa/-/pipelines/11357

  • Syntax OK
  • Unit OK
  • Acceptance (Puppet5) FAILED - Output here, not related to new added code.

Tested deployed code into test env:

  • Related Puppetfile entry
mod 'adullact-freeipa',
  :git    => 'https://gitlab.adullact.net/egypcio/puppet-freeipa',
  :commit => '5067aa928ef706e8aaf39e863d4ecff94d7e7444'
  • Agent's output
# puppet agent -t
...
Info: Caching catalog for ns3.localdomain
Info: Applying configuration version '1603192735'
Notice: /Stage[main]/Profile::Basepackages/Package[vim]/ensure: created
Notice: /Stage[main]/Profile::Basepackages/Package[ruby]/ensure: created
Notice: /Stage[main]/Freeipa::Install::Client/Exec[client_install_ns3.localdomain]/returns: executed successfully
...

# date
Tue Oct 20 11:22:09 UTC 2020
  • Class used for the test and setup
  class { 'freeipa':
    ipa_role                    => 'client',
    principal_usedto_joindomain => 'foo',
    ipa_master_fqdn             => 'ipa.localdomain',
    domain                      => 'localdomain',
    password_usedto_joindomain  => '123FreeCookiesForAll!',
    directory_services_password => '123FreeCookiesForAll!',
    puppet_admin_password       => '123FreeCookiesForAll!',
    install_epel                => false,
    ip_address                  => $ipaddress,
    configure_ntp               => false,
    force_join                  => true
  }
Edited Oct 20, 2020 by Vinicius Zavam
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: add-force-join-option