- Home
- Tag: testing
Posts tagged testing
Tag: testing
Inside Puppet: About Determinism
Feed: Puppet.com Blog RSS Feed. Author: ; Why do we want configuration management? There are plenty of reasons, but at the core of them is that we want to streamline the configuration and deployment of systems. We want this process to be repeatable, well-understood, and predictable. We want to make it deterministic. Determinism — the idea that a process should result in the same outcome every time it is applied — is not a new idea, but it’s also not one that system administrators apply to their daily work. Can you prove that the bash script you just wrote to ... Read More
Ruby DSL
Feed: Puppet.com Blog RSS Feed. Author: ; Editor's Note: The Ruby DSL was deprecated in Puppet 3x, and is removed in Puppet 4.0.0.Starting in Puppet 2.6.x, manifests can be written in Ruby.Motivations: Developers can generate puppet resources without having to learn the Puppet DSL. Possible to overcome any limitations of the Puppet DSL. Ruby already has well known unit testing frameworks. Methods: Puppet's Ruby DSL introduces two types of methods: Methods that create scopes: define Allows the user to implement a defined resource type in Ruby.define "services::port", :port, :protocol => 'tcp' do ... endport and protocols are accessible within the ... Read More
Facter Part 3: Caching and TTL
Feed: Puppet.com Blog RSS Feed. Author: ; In facter part 2, we explored how to write custom facts in ruby along with testing and distribution. Since facter is executed every single time puppet runs, there are benefits to cache the information on the client and refresh based on some TTL. Looking ahead, both features are on our roadmap for facter 2.0, but it's not complicated to implement them for custom facts. To get started, here's a practical custom fact that retrieves geo information using api.hostip.info: require 'facter' require 'rubygems' require 'rest_client' geo_raw=(RestClient.post "http://api.hostip.info/get_html.php", :position=>"true") geo_data=Hash[*geo_raw.scan(/(.*): (.*)n/).to_a.flatten] geo_data.each do |key, val| ... Read More
Facter Part 2: Testing and Deployment
Feed: Puppet.com Blog RSS Feed. Author: ; In facter part 1 we showed how to use facter, as well as how to create custom facts using ruby and environment variables. In this post, we will go into further details how to test, distribute custom facts in your environment whether you are using puppet standalone or in master/agent mode. As a refresher, here's the ruby code for system_role.rb: require 'facter' Facter.add(:system_role) do setcode do Facter::Util::Resolution.exec("cat /etc/system_role") end end For testing, we need to ensure the system_role.rb file is in the RUBYLIB or FACTERLIB path. In the case of RUBYLIB, it will ... Read More
Percona Server for MySQL 8.0 – New Data Masking Feature

Feed: Planet MySQL; Author: Percona Community; Francisco Miguel Biete Banon | December 13, 2019 | Posted In: Intermediate Level, MySQL, Percona Server for MySQLDatabase administrators are responsible for maintaining the privacy and integrity of data. When the data contains confidential information, your company has a legal obligation to ensure that privacy is maintained. Even so, being able to access the information contained in that dataset, for example for testing or reporting purposes, has great value so what to do? MySQL Enterprise Edition offers data masking and de-identification, so I decided to contribute similar functionality to Percona Server for MySQL. In this post, ... Read More
Git Workflow and Puppet Environments
Feed: Puppet.com Blog RSS Feed. Author: ; Editor's Note: This post has been updated with information on using r10k, a tool developed by Adrien Thebo. For the most current information, read Git Workflows with Puppet and r10k.One of the features offered by Puppet is the ability to break up infrastructure configuration into environments. With environments, you can use a single Puppet master to serve multiple isolated configurations. For instance, you can adopt the development, testing and production series of environments embraced by a number of software development life cycles and by application frameworks such as Ruby on Rails, so that ... Read More
Testing Modules in the Puppet Forge
Feed: Puppet.com Blog RSS Feed. Author: ; We are evaluating two tools for testing Puppet modules. One is rspec-puppet, the other is cucumber-puppet. The hope is to get standards for testing into the module forge and hook it into a CI framework such as Hudson or Jenkins. This will enable Puppet Forge users to immediately evaluate a module in terms of its test failure rate, and enable developers to see the intended behavior of the module. The higher level goal is to open a discussion among developers on the Puppet Forge about the intended behavior of modules, what they need ... Read More
Indeed You Can: Get a Job Using Puppet, and Learn More About Indeed.com
Feed: Puppet.com Blog RSS Feed. Author: ; Indeed uses puppet in testing, integration, staging and production environments. Puppet has enabled Indeed Operations to scale to hundreds of servers across multiple datacenters with differing infrastructure while maintaining configuration consistency in testing, integration, staging and production environments. Our new Vice President of Marketing, Scott Johnston, was recently poking around on Indeed.com and discovered the trend feature. He did a quick search: In an email to all, our CEO proclaimed: "Pretty sweet." What can only be described as a the virtual equivalent of the Ninja Turtles signature jumping group high five quickly followed ... Read More
Guest Post: A Puffy in the Corporate Aquarium, The Sequel
Feed: Puppet.com Blog RSS Feed. Author: ; After I wrote an article for the OpenBSD Journal about my job at M:tier explaining how we were deploying OpenBSD in several production setups, I've been asked several times to extend the part regarding our usage of Puppet. Most of our solution management is handled by Puppet, from unattended installation and configuration to daily maintenance and security updates. Unfortunately and for obvious reasons, I cannot go into the tiny details of our setup, but hopefully this article will share some light on how Puppet improved our deployment of OpenBSD and assorted applications amongst ... Read More
Puppet Enterprise 1.1: New Platform Support and 5x the Free Nodes
Feed: Puppet.com Blog RSS Feed. Author: ; This week Puppet Labs released version 1.1 of Puppet Enterprise. During the 1.0 launch, we committed to expand the number of platforms supported, and this release is focused on just that. In addition to new platform support, we have changed the number of free licenses from 2 to 10. With 2 nodes, some of the evaluation options were limited. With 10, you should be able to deploy a small lab environment and learn about the value of Puppet Enterprise on your systems. Version 1.1 introduces some new platforms with support for master and ... Read More
Recent Comments