Comments (24)
How about
chocolateyfeature {'featureName':
ensure => 'enabled',
}
from puppet-chocolatey.
This is available right now - https://forge.puppet.com/puppetlabs/chocolatey#chocolateyfeature
from puppet-chocolatey.
Gladly, I see your point. But I was thinking rather about parameters part. As for now, if you want to use choco with foreman you have to write your own class to use: chocolateyfeature class.
I was thinking about creating extra parameters like: chocofeatures, and passing it IN puppet/chocolatey class like:
chocofeatures:
feature1: 0
feature2: 1
and so on.
from puppet-chocolatey.
I don't know If I missed something, but I am using: https://forge.puppet.com/chocolatey/chocolatey
from puppet-chocolatey.
@marcinbojko I'm not sure I understand the purpose of parameters versus types and providers. Is there some benefit to using parameters over using T&P like chocolateyfeature? Don't forget that you can always use install_options to pass parameters.
Also, you probably missed something 👍 . https://puppet.com/blog/package-management-windows-gets-even-better-chocolatey
from puppet-chocolatey.
Yeah, I know about OneGet.
My point is: if you want to user chocofeatures, you have to write your own class/module.
Using parameters you can pass the resources to the module.
from puppet-chocolatey.
Yeah, I know about OneGet.
Where was OneGet mentioned? Let's not confuse "package management" with "PowerShell PackageManagement" - note the proper name of the second, which is a package management aggregator.
from puppet-chocolatey.
My point is: if you want to user chocofeatures, you have to write your own class/module.
Using parameters you can pass the resources to the module.
Perhaps you can explain this to me some more? Not trying to be daft, I'm just not understanding why you wouldn't just use the module. If it because the Foreman provides a default module you can plug into with your ENC variables, then I would suggest that be a feature of that module.
I mean you can't get away from having to write:
package{'name/hiera var':
ensure => 'installed/latest/version/absent/hiera var',
}
It may be that the Foreman has a default module already available for you where it was written. So it seems that parameters is a feature request for them, unless I'm mistaken. cc @genebean
from puppet-chocolatey.
@ferventcoder. My first error is that I don't understand difference between chocolatey/chocolatey module and puppetlabs/chocolatey module. I suppose the latter has the ability to manage features the former hasn't.
So, let me check if I just replace modules, managing features will be available.
PS. I would never get you as a daft one ;)
from puppet-chocolatey.
Ok, no changes at all.
So, why parameters? Foreman allows you to change only parameters declared in params.pp. Other params not declared are just not visible.
And if I want to change chocofeature I should write another wrapper module to:
- declare param like 'resources'
- execute create_resources(chocolatey::chocofeature,$resources)
from puppet-chocolatey.
Yes, the latter has chocolateysource
, chocolateyfeature
, and chocolateyconfig
.
from puppet-chocolatey.
Ah, those kind of parameters. The problem with params typically is that it applies to classes and defined types, where things like package
are a type and you would need a defined type to pass params to. That's typically why I stated you would still need to define a package resource somewhere. The new types and providers fall into that same category.
IIRC, the Foreman has some additional variables it can declare and use that take advantage of ENC/hiera as well.
from puppet-chocolatey.
You just can change values defined in params.
So simple $chocofeature param (type undefined) will be fine ;)
I'll try to propose a solution to a code.
from puppet-chocolatey.
I'm not sure this is the proper place for this , I am having the following issue with the install of chocolatey
"When FIPS Mode is enabled, Chocolatey requires useFipsCompliantChecksums feature also be enabled."
Chocolatey won't install via puppet, it looks as if this is the reason, the Eny does have FIPS turned on and wont be turning it off anytime soon . May I pass the following parameter in somewhere during or before the chocolatey install
Thank you
from puppet-chocolatey.
Sadly, I wrote that part it myself.
from puppet-chocolatey.
I'm guessing that response is to mine? You wrote that function into this code yourself is what your saying?
Forgive me, im pretty new, but either I need to use another chocolatey code module from the forge or know how to include this function into this module.... Do I have my thinking correct?
from puppet-chocolatey.
@vandelin586 @ferventcoder pointed that featured code is already in puppetlabs-chocolatey module. Sadly, I was using chocolatey-chocolatey module, where those features were still unavailable.
So I wrote that piece myself, in whole aggregated unit called win_manage.
I hope, I will be able to release tested version soon: https://marcinbojko.wordpress.com/2016/10/04/puppet-the-foreman-powershell-dsc-your-system-center-in-a-box/
I am newbie in coding also, so far I am SysAdmin/Network engineer, but small steps at a time ;)
from puppet-chocolatey.
This? https://forge.puppet.com/puppetlabs/chocolatey#enable-fips-compliant-checksums
chocolateyfeature {'usefipscompliantchecksums':
ensure => enabled,
}
However I hear that something is causing issues prior to even being installable? I'd like to dig in a little more @vandelin586 - can you reach out in a new issue here, over at chocolatey/choco repository, or in the Puppet #windows slack channel?
from puppet-chocolatey.
So with the puppet implementation that choco is failing on. This is on a network I do not yet have access to. I cant see the code, yet. I was just going off hear say by others.
In my test lab , I stood up win 2012 , tried my test lab chco puppet install = sucess
In my test lab , I stood up win 2012 ,enabled fips, tried my test lab chco puppet install = fail
In my test lab , I stood up win 2012 ,enabled fips,ran
chocolateyfeature {'usefipscompliantchecksums':
ensure => enabled,
}, tried my test lab chco puppet install = sucess
The network I dont yet have access to , they are using chocolatey\chocolatey.
I dont think chco is fully installed as the server wont respond to choco.exe commands . Their puppet code is to use choco but it might be failing because of something like below?
running in elevated cmd window
@PowerShell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
on the server comes back as cannot connect, connection dropped bad ssl handshake type errors
This client is mandated to use FIPS and have very strict firewall / security policies/rules I dont think anything is wrong with the code / puppet code / modules that i have seen so far
from puppet-chocolatey.
when i say chco install , the way the client has this particular piece of code. Its an all in one, install choco and use choco in the same module to install windows features and such , as iis. my request is in to get read access to their code , tue or wed i should have access. I want to see if i can re design some of this
from puppet-chocolatey.
As I mentioned, please create a new issue as I'd like to keep as much of the conversation there as possible. Once you've created the new issue, I will discuss more about things I'd like to understand.
from puppet-chocolatey.
@ferventcoder - Since this functionality is embedded in puppetlabs module, can I close this issue?
from puppet-chocolatey.
I have never opened one before, but i will give it my best coach ! TY
from puppet-chocolatey.
@vandelin586 there is a link at the top for "New Issue" - I'm sure you will do fine. 👍
@marcinbojko sure, we can close this.
from puppet-chocolatey.
Related Issues (20)
- Chocolatey 0.9.10 and exit codes - Chocolatey Package Provider is now reporting successful package installs as failures HOT 2
- Support feature list changes in v0.9.10+ HOT 1
- AutoUninstaller runs every time in 0.9.9.x HOT 13
- Choco_install_path facter HOT 1
- Exec[chocolatey_autouninstaller_enable] always runs because unless command don't work HOT 4
- Problem installing chocolatey with proxy HOT 1
- InstallChocolatey.ps1 doest look at system proxy-bypasslist when downloading choco from url HOT 1
- AutoUninstaller ensure runs every time in 0.10.x HOT 6
- Can't make it to work HOT 9
- Chocolateysource priority behaves different on different Windows versions HOT 1
- How I overcame SSL handshake issues HOT 3
- Problems with ensuring proper version to be passed as parameter. HOT 12
- Execution Policy and puppet HOT 1
- allow downgrade should work HOT 3
- Module dependency upgrade HOT 2
- chocolateyversion - bad parsing (to_s) for versioning HOT 4
- Puppet agent don't apply my own chocolatey module HOT 2
- Hard coded 7z url defeats proxies HOT 8
- Powershell 5.1 workaround (can't install chocolatey using chocolatey-chocolatey 1.2.6) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-chocolatey.