Coder Social home page Coder Social logo

puppetlabs-seteam / control-repo Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 37.0 22.23 MB

New SE Demo repository that is imported into the demo platform.

Home Page: https://confluence.puppetlabs.com/display/TSE/SE+Demo+Environment

License: Apache License 2.0

Ruby 22.01% Puppet 69.61% Shell 4.57% HTML 3.16% CSS 0.51% PowerShell 0.08% Pascal 0.05%

control-repo's People

Contributors

boltkrank avatar croddy avatar dependabot[bot] avatar git-jfontanel avatar github-actions[bot] avatar grace-andrews avatar hpcprofessional avatar ipcrm avatar jsing3r avatar ka83753 avatar krispypuppet avatar maju6406 avatar moedes avatar mtyates avatar murdok5 avatar nelsong27 avatar psreed avatar puppet-cwynweldy avatar rajeshr264 avatar raryates avatar reidmv avatar seantecha avatar shermdog avatar spotter-puppet avatar statio avatar stephenkpotter avatar timidri avatar tspeigner avatar unixsanet avatar vapuppet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

control-repo's Issues

Contribution rules change proposal

To streamline control repo development and support CD4PE workflows I propose the following changes to contribution rules:

  • master becomes the default branch and target for pull requests
  • feature branches are removed from this repo and created in forks
  • creation of new branches in this repo is restricted

A question remains how to automate updates to the production branch after a master change to support CD4PE-less workflows.

profile::platform::baseline fails on server2012r2a - choco errors

Applying profile::platform::baseline fails on a fresh server2012r2a with chocolatey errors pointing at the uniextract package. It appears from this snippet of the error that the hash/checksum didn't match:

"Error - hashes do not match. Actual value was 'D3A1C3D15747EFA884D79CDD997838966C60265D'. ERROR: Checksum for 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\uniextract.install\1.6.1\uniextract.installInstall.exe' did not meet '2e31438e3da025877b3394344d54d7c31c646863' for checksum type 'sha1'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary. The install of uniextract.install was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\uniextract.install\tools\chocolateyInstall.ps1'. See log for details"

Chocolatey-error.txt
chocolatey.log

Create a onceover job

The job should be configured to run onceover on all roles and profiles for the control repo.

Patching, Dynamic Inventory, and Tasks use case

Relative to SKO FY21

Paul Anderson Kevin R. just showed an interesting use case I hadn’t really considered: Using custom facts (in this case patching and change windows) combined with Classification groups to:
Quickly show groups of systems that match whatever fact you’re interested in
Quickly run a task against those groups (e.g. reboot systems pending reboot or patch systems with a given time_window)
This seems to me an interesting use case we should consider highlighting in the new SE Repo, especially as we do more and more with Plans.
But it also shows a cool way to show value in the console relative to OSP. IT is more interesting than just SDLC groups (edited)

Ryan Russell-Yates Me neither. I hadn't considered a PE Node Group as a set of rules that I'd want nodes to shift in and out from
In this case: Declaring which nodes are patched, which are prepared for patch, etc

role::cloudshop runs with errors on server2012r2a

In the vagrant environment, I assign a new/clean server2012r2a node the role::cloudshop, and it runs cleanly, but has the following red errors:
Error: Failed to apply catalog: undefined method 'split' for :windows:Symbol

Oddly, the first run report on the master show as only intentionally changed (though does show the err at the bottom) and subsequent runs show as green check/unchanged.

Subsequent runs in cmd result in the following:
C:\Users\vagrant>puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Facter: error while resolving custom facts in C:/ProgramData/PuppetLabs/p
uppet/cache/lib\facter\cis_windows.rb: undefined method `chomp' for nil:NilClass

Error: Facter: error while resolving custom facts in C:/ProgramData/PuppetLabs/p
uppet/cache/lib/facter\cis_windows.rb: undefined method `chomp' for nil:NilClass

Info: Caching catalog for server2012r2a.pdx.puppet.vm
Info: Applying configuration version 'b3ec01ab0d517a68d1284d60ad0a8c11bfcb260e'
Error: Failed to apply catalog: undefined method `split' for :windows:Symbol

C:\Users\vagrant>

error-output.txt
last_run_report.txt

Disable Windows Defender

registry_key { 'HKLM\SOFTWARE\Policies\Microsoft\Windows Defender':
        ensure => present,
        before => Registry_value['DisableAntiSpyware'],
      }
      registry_value { 'DisableAntiSpyware':
        path   => 'HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\DisableAntiSpyware',
        ensure => present,
        type   => dword,
        data   => 1,
      }
      reboot { 'afterdisableAntiSpyware':
        subscribe => Registry_value['DisableAntiSpyware'],
      }

Change the automatic CI process to use travis-ci

  • create a travisci pipeline which performs the same tests as the current Jenkinsfile
  • add the module to Travis to trigger tests on push to master and PRs to master
  • test the new pipeline
  • disable the Jenkins integration

R10k Lint Job not exiting properly on failures

@kreeuwijk raised:

The rake task for checking the Puppetfile gives a false positive:

Failed to evaluate ./Puppetfile
    Original exception:
    ./Puppetfile:72: syntax error, unexpected =>, expecting end-of-input
      :branch => 'master'
                ^
AfterBuildSuccess:
http://cd4pe.inf.puppet.vm:48080/[email protected]/releases/vm-job-instance:158

demo_cis causes failure in role::cloudshop

Applied demo_cis onto fresh server2012r2a system in vagrant. Ran cleanly and then added the role::cloudshop and saw 2 sets of errors:

  1. The choco uniextract hash/checksum not matching error outlined in the other issue: #57

  2. Cloudshop must have some password lengths that don't comply with the demo_cis settings:
    Error: User update failed: (in OLE method `SetInfo': )
    OLE error code:800708C5 in Active Directory
    The password does not meet the password policy requirements. Check the min
    imum password length, password complexity and password history requirements.

    HRESULT error code:0x80020009
    Exception occurred.
    Wrapped exception:
    (in OLE method `SetInfo': )
    OLE error code:800708C5 in Active Directory
    The password does not meet the password policy requirements. Check the min
    imum password length, password complexity and password history requirements.

    HRESULT error code:0x80020009
    Exception occurred.
    Error: /Stage[main]/Profile::Platform::Baseline::Users::Windows/User[Sample Demo
    ]/ensure: change from 'absent' to 'present' failed: User update failed: (in OLE
    method `SetInfo': )
    OLE error code:800708C5 in Active Directory
    The password does not meet the password policy requirements. Check the min
    imum password length, password complexity and password history requirements.

    HRESULT error code:0x80020009
    Exception occurred.
    Info: Stage[main]: Unscheduling all events on Stage[main]
    Notice: Applied catalog in 114.12 seconds

C:\Users\vagrant>

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.