Questions tagged [serverspec]

an open-source infrastructure testing platform for servers configured with configuration management tools; aimed at refactoring infrastructure code

6 questions
4
votes
2 answers

How do I write a local test with Serverspec?

So far Serverspec is working out great. I'm testing my servers, everything looks good. Let's say I want to test my LDAP cluster via running a few LDAP commands from my local workstation, say ldapsearch. The reason I would do this on my workstation…
cat pants
  • 2,139
  • 10
  • 33
  • 44
1
vote
1 answer

Harware Spec for SCCM Distribution Point

I have looked on Microsoft's documentation about the hardware requirements for a distribution point server to have at every site in the company. Is the following spec adequate from people's experience? 8 CPU cores 32 GB ram 2TB HDD
RLBChrisBriant
  • 493
  • 1
  • 6
  • 20
1
vote
1 answer

serverspec if statement for mysql version on server

Is there a way to check which package installed on server by command output? describe command('mysql -e "select version();"') do if its(:stdout) { should =~ /5.6.27-76.0-log/ } describe package('MySQL-client') do it { should be_installed…
A1001
  • 13
  • 3
1
vote
2 answers

Is there a way to automatically fetch latest `openssl version` string?

I have the following check in Serverspec tests: openssl_latest_version = 'OpenSSL 1.0.2h 3 May 2016' describe command('openssl version') do its(:stdout) { should match openssl_latest_version } end Is there a way to automatically fetch the…
techraf
  • 4,163
  • 8
  • 27
  • 44
0
votes
1 answer

Install RAM in the server HP ProLiant DL180 G6

I have server HP ProLiant DL180 G6 with Windows Server 2008 x64. It has 64 GB of RAM installed. Only 32 are used. Changed the location of the RAM for this information…
0
votes
1 answer

serverspec nginx should be listening using packer

I am using packer to build an ami on aws, after the provision of the ami, I am testing the image using serverspec, but the test fail testing nginx, this is the test cat test/spec/localhost/nginx_spec.rb …
c4f4t0r
  • 5,149
  • 3
  • 28
  • 41