Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9170059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:57:52+00:00 2026-06-17T15:57:52+00:00

Am using the Puppet module from https://github.com/puppetlabs/puppetlabs-mysql and for some reason it keeps producing

  • 0

Am using the Puppet module from https://github.com/puppetlabs/puppetlabs-mysql and for some reason it keeps producing errors regarding apt-get update.

The exact error message can be found here.

For some strange reason the MySQL class is being executed first before anything else and before my apt-get update command executes.

Is there a way to ensure the command apt-update runs before my MySQL module?

Here you can find my current default.pp manifest for my

I’ve tried various ways to make sure apt-update command is executed first but nothing seems to work. At line 148 I tried the following code,


package { 'mysql':
ensure => "installed",
require => Exec['apt-update'],
}

But this didn’t solve my issue.

Running out of ideas on how to fix this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:57:53+00:00Added an answer on June 17, 2026 at 3:57 pm

    To ensure apt-get update happened before Puppet provisioning I placed the following command in my Vagrantfile before I defined Puppet.


    config.vm.provision :shell, :inline => "apt-get update --fix-missing"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://forge.puppetlabs.com - Is there a module for deploying Rails using puppet on a Ubuntu
Currently I am running puppet from root user. I want to manage Redis using
I'm using puppet and want to test it with noop, but some configuration depends
I've been trying to get apache to serve from /vagrant/ using puppet through vagrant,
I am trying to source files from local modules in a puppet manifest (using
Using the http://www.ifans.com/forums/showthread.php?t=132024 post from another question i am allowing the user to enter
Running Puppet v2.7.14 on CEntOs 6 and also using Apache/Passenger instead of WEBrick. I
I am using a vagrant/puppet to configure my testmachine, i am using it to
I am using Vagrant and Puppet to install Apache and PHP on Ubuntu. However
I am using Puppet for automating configuration management across hosts. It can use erb

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.