<commit_before># vagrant-purge-old-puppet-from-ubuntu

A script to remove the old version of puppet from the Vagrant ubuntu/trusty64 image

When using Vagrant, it can be problematic when using the ubuntu/trusty64 image when trying to install a version 4.X version of Puppet.

This is caused by the default ubuntu/trusty64 image already containing an installed version of puppet (3.X)

The scripts folder of this project contain versions of this script that can be inlined into the "provision" stage of a Vagrant box startup to automatically remove older puppet if need be.

Version 1.0.0 of the script simply assumes a complete remove and re-install is requested.

This script can work in combination with the Vagrant Plugin [vagrant-puppet-install](https://github.com/petems/vagrant-puppet-install)

Enhancements to this script are welcome with Pull Requests.

--

 To use this script in your Vagrantfile, the following code will work...

 ```
 config.vm.define :trusty_ubuntu_box do |trusty_ubuntu_box|
     trusty_ubuntu_box.puppet_install.puppet_version = :latest
     trusty_ubuntu_box.puppet_install.install_url = "https://raw.githubusercontent.com/MikeCaspar/vagrant-purge-old-pupp$

     trusty_ubuntu_box.vm.box = "ubuntu/trusty64"

     trusty_ubuntu_box.vm.provision "shell", inline: "puppet --version"

 end

 ```
---
For more information on the vagrant-puppet-install module click [HERE](https://github.com/petems/vagrant-puppet-install)

We suspect there may be other modules or apps that might be able to use this script.

If you find another use for this script, please let us know by opening an issue. Or, do a fork and pull request to modify the README.md


Authors:
<NAME> <<EMAIL>>
<commit_msg>Add link to Vagrant<commit_after># vagrant-purge-old-puppet-from-ubuntu

A script to remove the old version of puppet from the Vagrant ubuntu/trusty64 image

When using Vagrant, it can be problematic when using the ubuntu/trusty64 image when trying to install a version 4.X version of Puppet.

This is caused by the default ubuntu/trusty64 image already containing an installed version of puppet (3.X)

The scripts folder of this project contain versions of this script that can be inlined into the "provision" stage of a Vagrant box startup to automatically remove older puppet if need be.

Version 1.0.0 of the script simply assumes a complete remove and re-install is requested.

This script can work in combination with the Vagrant Plugin [vagrant-puppet-install](https://github.com/petems/vagrant-puppet-install)

Enhancements to this script are welcome with Pull Requests.

--

 To use this script in your Vagrantfile, the following code will work...

 ```
 config.vm.define :trusty_ubuntu_box do |trusty_ubuntu_box|
     trusty_ubuntu_box.puppet_install.puppet_version = :latest
     trusty_ubuntu_box.puppet_install.install_url = "https://raw.githubusercontent.com/MikeCaspar/vagrant-purge-old-pupp$

     trusty_ubuntu_box.vm.box = "ubuntu/trusty64"

     trusty_ubuntu_box.vm.provision "shell", inline: "puppet --version"

 end

 ```
---
For more information on the vagrant-puppet-install module click [HERE](https://github.com/petems/vagrant-puppet-install)

For more information about Vagrant, go to the Vagrant web site at [https://www.vagrantup.com/](https://www.vagrantup.com/)

We suspect there may be other modules or apps that might be able to use this script.

If you find another use for this script, please let us know by opening an issue. Or, do a fork and pull request to modify the README.md


Authors:
<NAME> <<EMAIL>>

{'fraction_non_alphanumeric': 0.07279370432827431, 'fraction_numerical': 0.007307476110174255, 'mean_word_length': 4.2961309523809526, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '994321', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1059, 'n_words': 424}