Giter VIP home page Giter VIP logo

chef-ruby-lvm's Introduction

sous-chefs.org website

Netlify Status OpenCollective OpenCollective License

The website is created using the static site generator, Hugo.

The live website is hosted on GitHub pages on the gh-pages branch. Netlify is used to preview changes on branches.

Development

  1. Install Hugo for your platform according to the instructions

  2. Create a feature branch to work on based off of main

  3. Clone the website code and start the development server. This will run a local hugo server that watches for changes to the source files. There will be a section in the output showing which port the site is served on (typically http://localhost:1313):

    git clone [email protected]:sous-chefs/website
    cd website
    git checkout -b my-feature-branch
    hugo server -ws .
  4. Commit your changes, push the branch to the remote and open a Pull Request.

    git push --set-upstream origin my-feature-branch

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website

chef-ruby-lvm's People

Contributors

b-dean avatar bby-bishopclark avatar damacus avatar dependabot-preview[bot] avatar dependabot[bot] avatar gregsymons avatar jaymzh avatar johnhampton avatar tas50 avatar wheatevo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chef-ruby-lvm's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

bundler
Gemfile

  • Check this box to trigger a request for Renovate to run again on this repository

undefined local variable or method `line' for LVM::External:Module

Version:

[Version of the project installed]
0.4.1

Environment:

[Details about the environment such as the Operating System, cookbook details, etc...]
RHEL7

Scenario:

[What you are trying to achieve and you can't?]

Steps to Reproduce:

I am using a cookbook that has worked for several years. This morning while performing a deployment, we started to receive error
undefined local variable or method 'line' for LVM::External:Module only when using chef-ruby-lvm 0.4.1.
0.4.0 works as expected.

Create a volume using the gem

lvm = LVM::LVM.new

[If you are filing an issue what are the things we need to do in order to repro your problem?]

Expected Result:

[What are you expecting to happen as the consequence of above reproduction steps?]

The volume should be created

Actual Result:

[What actually happens after the reproduction steps?]

Receive error undefined local variable or method line' for LVM::External:Module`

Cannot specify additional arguments for LVM commands

There are circumstances where users may want to add more arguments for LVM commands (such as --ignoreskippedcluster or --ignorelockingfailure). This gem should provide an interface for modifying the base command with additional arguments.

How to reload the attributes?

It seems like the attributes like vg_free are cached.

When e.g. using

 execute 'remove swap' do
    command 'swapoff -a && yes | lvremove /dev/debian-8-vg/swap_1 && swapoff -a'
  end

  execute 'create swap' do
    command 'lvcreate --size 100M -Wy -n swap debian-8-vg'
  end

Which will result in a 900MB smaller swap partition, this will still result in free 0

LVM::LVM.new do |lvm|
  vg = lvm.volume_groups['debian-8-vg']
  return unless vg.free > 0
end

While, when checking on the server, 900MB are free. Running the chef-client once again, will then result in vg_free being 900MB as expected.

It seems like something is cached, but i could not find any evidence in the code. Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.