Giter Site home page Giter Site logo

Comments (6)

bodgit avatar bodgit commented on July 30, 2024 1

I've added a defined type for adding entries to the bottom of .gitignore, etc. You'd do something like:

::etckeeper::ignore { 'pve/*':
  ensure => present,
}

from puppet-etckeeper.

monotek avatar monotek commented on July 30, 2024

Temporary solution:

git rm --cached -r pve
echo 'pve/*' >> /etc/.gitignore
etckeeper commit -m "remove pve folder"

from puppet-etckeeper.

bodgit avatar bodgit commented on July 30, 2024

In theory this requires just managing the .gitignore file somehow however I don't want to end up fighting with etckeeper if it wants to manage its own block of ignores. Ideally I would want something that works for each of the supported VCS if they also have a way of ignoring files.

from puppet-etckeeper.

bodgit avatar bodgit commented on July 30, 2024

So etckeeper runs etckeeper update-ignore to generate the list of ignores in whatever form each VCS wants. Any patterns added before or after the magic managed by etckeeper comments are retained but if they're within those comments then a subsequent run of etckeeper update-ignore will trash them. So ideally I need a way of managing just that bit of the file.

from puppet-etckeeper.

monotek avatar monotek commented on July 30, 2024

Thanks a lot. Works :-)

from puppet-etckeeper.

monotek avatar monotek commented on July 30, 2024

Ah... One last thing.
The already existing entries in git also needs to be removed. Adding the following command should do the trick for git:

  • git rm --cached -r pve

from puppet-etckeeper.

Related Issues (12)

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.