<commit_before>puppet-ramdrive
===============

Create a ramdrive with puppet

###How to use this module? ...Examples

	# logdir in ram
	$log_path = '/var/log/ipsec'
	ramdrive { $log_path:
	  size       => '100M',
	  mode       => '0750',
	  owner      => 'root',
	  group      => 'adm',
	  notify     => Service[$strongswan::service_name],
	  require    => Package[$strongswan::package],
	}


	# mount a ramdrive for each temporary folder
	ramdrive { [
	  "${project_dir}/app/storage/cache",
	  "${project_dir}/app/storage/logs",
	  "${project_dir}/app/storage/meta",
	  "${project_dir}/app/storage/sessions",<commit_msg>improving the README<commit_after>puppet-ramdrive
===============

Create a ramdrive with puppet.

In this times that we have to live in, it is more convenient/efficient to use RAM memory to do I/O intensive operations instead hitting the HDD, or wearing off our precious SSD drives.
I wrote a simple yet useful puppet module to assist me in my every day tasks with RAM drives, I hope someone can use it too.

###Instalation

	puppet module install facastagnini-ramdrive

###How to use this module? ...Examples

	# logdir in ram
	$log_path = '/var/log/ipsec'
	ramdrive { $log_path:
	  size       => '100M',
	  mode       => '0750',
	  owner      => 'root',
	  group      => 'adm',
	  notify     => Service[$strongswan::service_name],
	  require    => Package[$strongswan::package],
	}


	# mount a ramdrive for each temporary folder
	ramdrive { [
	  "${project_dir}/app/storage/cache",
	  "${project_dir}/app/storage/logs",
	  "${project_dir}/app/storage/meta",
	  "${project_dir}/app/storage/sessions",
{'fraction_non_alphanumeric': 0.14646153846153845, 'fraction_numerical': 0.008615384615384615, 'mean_word_length': 3.430517711171662, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1577927', 'n_tokens_mistral': 549, 'n_tokens_neox': 509, 'n_words': 151}