• Overview
  • Deploying MCollective
  • Configuration / Deployment Topics
  • Use and Administer MCollective
  • Write Agent Plugins
  • Write Clients and Applications
  • Write Other Plugins
  • Plugin Directory
  • Internals
  • Older and Non-Recommended Information

MCollective Plugin: AgentApt

Sections

Introduction

An agent to handle apt/dpkg tasks such as finding the total number of upgrades available, listing the total number of packages installed, or executing an ‘apt-get clean’ or ‘apt-get update’.

Installation

  • The source for the plugin is GitHub

Usage

Update

# mc-apt update
Do you really want to operate on services unfiltered? (y/n): y
server01.example.com                                : OK
server02.example.com                                : OK
server03.example.com                                : OK
server04.example.com                                : OK
server05.example.com                                : OK

Clean

# mc-apt clean
Do you really want to operate on services unfiltered? (y/n): y
server01.example.com                                : OK
server02.example.com                                : OK
server03.example.com                                : OK
server04.example.com                                : OK
server05.example.com                                : OK

Installed

# mc-apt installed
Do you really want to operate on services unfiltered? (y/n): y
server01.example.com                                : 755
server02.example.com                                : 832
server03.example.com                                : 744
server04.example.com                                : 755
server05.example.com                                : 832

</pre>

Upgrades

# mc-apt upgrades
Do you really want to operate on services unfiltered? (y/n): y
server01.example.com                                : 57
server02.example.com                                : 19
server03.example.com                                : 0
server04.example.com                                : 0
server05.example.com                                : 0
See an issue? Please file a JIRA ticket in our [DOCUMENTATION] project
Puppet sites use proprietary and third-party cookies. By using our sites, you agree to our cookie policy.