{"id":15022822,"url":"https://github.com/voxpupuli/puppet-download_file","last_synced_at":"2025-10-21T03:48:44.650Z","repository":{"id":11319367,"uuid":"13740214","full_name":"voxpupuli/puppet-download_file","owner":"voxpupuli","description":"Puppet define created that can be used to download files rather than needing to store binaries in puppet repos","archived":true,"fork":false,"pushed_at":"2024-10-24T11:28:07.000Z","size":305,"stargazers_count":8,"open_issues_count":10,"forks_count":41,"subscribers_count":46,"default_branch":"master","last_synced_at":"2024-10-29T14:22:34.386Z","etag":null,"topics":["hacktoberfest","puppet","windows-puppet-module"],"latest_commit_sha":null,"homepage":"https://forge.puppet.com/puppet/download_file","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voxpupuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"vox-pupuli","github":"voxpupuli"}},"created_at":"2013-10-21T11:18:38.000Z","updated_at":"2024-10-24T11:28:38.000Z","dependencies_parsed_at":"2023-09-24T10:05:43.580Z","dependency_job_id":"d78c4eb9-789b-440e-97a4-63f41f18dadf","html_url":"https://github.com/voxpupuli/puppet-download_file","commit_stats":{"total_commits":222,"total_committers":32,"mean_commits":6.9375,"dds":0.5990990990990991,"last_synced_commit":"3e558e90126c95b31f3b87490bb171e4a11aa081"},"previous_names":["opentable/puppet-download_file"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-download_file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-download_file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-download_file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-download_file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxpupuli","download_url":"https://codeload.github.com/voxpupuli/puppet-download_file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237981987,"owners_count":19397171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","puppet","windows-puppet-module"],"created_at":"2024-09-24T19:58:25.304Z","updated_at":"2025-10-21T03:48:44.307Z","avatar_url":"https://github.com/voxpupuli.png","language":"Ruby","funding_links":["https://opencollective.com/vox-pupuli","https://github.com/sponsors/voxpupuli"],"categories":[],"sub_categories":[],"readme":"# Download File module for Puppet\n\n[![Build Status](https://travis-ci.org/voxpupuli/puppet-download_file.png?branch=master)](https://travis-ci.org/voxpupuli/puppet-download_file)\n[![Code Coverage](https://coveralls.io/repos/github/voxpupuli/puppet-download_file/badge.svg?branch=master)](https://coveralls.io/github/voxpupuli/puppet-download_file)\n[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/download_file.svg)](https://forge.puppetlabs.com/puppet/download_file)\n[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/download_file.svg)](https://forge.puppetlabs.com/puppet/download_file)\n[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/download_file.svg)](https://forge.puppetlabs.com/puppet/download_file)\n[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/download_file.svg)](https://forge.puppetlabs.com/puppet/download_file)\n\n**The module is deprecated, please switch to [forge.puppet.com/puppet/archive](https://forge.puppet.com/modules/puppet/archive/readme)**\n\n#### Table of Contents\n\n1. [Overview](#overview)\n2. [Module Description - What the module does and why it is useful](#module-description)\n3. [Setup - The basics of getting started with download_file](#setup)\n    * [What download_file affects](#what-download_file-affects)\n    * [Setup requirements](#setup-requirements)\n    * [Beginning with download_file](#beginning)\n4. [Usage - Configuration options and additional functionality](#usage)\n5. [Reference - An under-the-hood peek at what the module is doing and how](#reference)\n5. [Limitations - OS compatibility, etc.](#limitations)\n6. [Development - Guide for contributing to the module](#contributing)\n\n## Overview\n\nThe download_file module allows you to download files on Windows\n\n## Module Description\n\nThe download_file module introduced a small define `download_file` that will\nallow you to download a file over http(s) for usage during an installation.\nThis was created because the package resource does not support http as a source\nfor packages. It is only supported on Windows.\n\n## Setup\n\n### What download_file affects\n\n* Downloads files onto each node\n\n### Setup Requirements\n\n* download_file makes use of Powershell so you will need to have at least\n  version 2.0 installed in order to use this module.\n\n### Beginning with download_file\n\nTo download dotnet 4.0\n\n```puppet\n    download_file { \"Download dotnet 4.0\" :\n      url                   =\u003e 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe',\n      destination_directory =\u003e 'c:\\temp'\n    }\n```\n\nTo download dotnet 4.0 using a proxy\n\n```puppet\n    download_file { \"Download dotnet 4.0\" :\n      url                   =\u003e 'http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe',\n      destination_directory =\u003e 'c:\\temp',\n      proxy_address         =\u003e 'http://corporateproxy.net:8080'\n    }\n```\n\nThe proxy will be used as part of the download using PowerShell. This does not\nset a system wide proxy\n\n## Usage\n\n## Reference\n\n### Defined Types\n\n#### Public Types\n\n* `download_file`: Download a give file\n\n### Parameters\n\n#### `url`\n\nThe http(s) destination of the file that you are looking to download\n\n#### `destination_directory`\n\nThe full path to the directory on the system where the file will be downloaded to\n\n#### `destination_file`\n\nThe optional name of the file to download onto the system.\n\n#### `user`\n\nThe optional userid is used when authenticating via Basic Auth with the server.\n`user` and `password` must be specified or this has no effect.\n\n#### `password`\n\nThe optional password is used when authenticating via Basic Auth with the server.\n`user` and `password` must be specified or this has no effect.\n\n#### `proxy_address`\n\nThe optional http proxy address to use when downloading the file\n\n#### `proxy_user`\n\nThe optional http proxy user to use when downloading the file. `proxy_address`\nand `proxy_password` must be specified or this has no effect.\n\n#### `proxy_password`\n\nThe optional http proxy password to use when downloading the file. `proxy_address`\nand `proxy_user` must be specified or this has no effect. By default this value\naccepts secure strings. A secure string is (unfortunately) tied to the machine\nthat it is used for. To generate a secure string for a given machine, users\nshould run the following powershell command on that machine (replacing\nPASSWORD with the desired password):\n\n```Powershell\nConvertFrom-SecureString -securestring $(ConvertTo-SecureString \"PASSWORD\" -AsPlainText -Force)\n```\n\nIt is possible to get this information then clear the command from history, but\nit's important to note that the -Force argument is there to suppress warnings\nthat the plaintext password is in the history.\n\nIf this process sounds unappealing, you can send the password in plaintext\n(which sits in the `download-\u003cfilename\u003e.ps1` file on the machine being provisioned)\nby changing the `is_password_secure` variable to `false`.\n\n#### `is_password_secure`\n\nThe optional switch to change the way that `proxyPassword` is interpreted from\nsecure string to plaintext. This will send the password in plaintext to the\nmachine being provisioned, which may be a security concern.\n\n#### `cookies`\n\nAn optional array of cookies to add to the HTTP request for the download.\n\n## Limitations\n\nThis module is tested on the following platforms:\n\n* Windows 2008\n* Windows 2008 R2\n* Windows 2012\n* Windows 2012 R2\n* Windows 7\n* Windows 8\n\nIt is tested with the OSS version of Puppet only.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for full details on contributing\nto this project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-download_file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxpupuli%2Fpuppet-download_file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-download_file/lists"}