Giter VIP home page Giter VIP logo

chrome-formula's Introduction

chrome-formula

Travis CI Build Status Semantic Release

Formula to install Chrome browser on GNU/Linux and MacOS.

General notes

See the full SaltStack Formulas installation and usage instructions.

If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section.

If you want to use this formula, please pay attention to the FORMULA file and/or git tag, which contains the currently released version. This formula is versioned according to Semantic Versioning.

See Formula Versioning Section for more details.

Contributing to this repo

Commit message formatting is significant!!

Please see How to contribute for more details.

Available states

chrome

Meta-state (This is a state that includes other states).

This installs Chrome Browser and related configuration.

chrome.package

This state will install Chrome package on GNU/Linux (direct rpm/deb or snap) and MacOS (homebrew). For details on possible snap support see https://chromeunboxed.com/chrome-browser-may-get-an-official-snap-package-for-linux/

chrome.macapp

This state will install Chrome macpackage on MacOS.

chrome.clean

Meta-state (This is a state that includes other states).

this state will undo everything performed in the chrome meta-state in reverse order.

chrome.package.clean

This state will remove Chrome package on GNU/Linux (native or snap) and MacOS (homebrew).

chrome.macapp.clean

This state will remove Chrome macpackage on MacOS.

Testing

Linux testing is done with kitchen-salt.

Requirements

  • Ruby
  • Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]

Where [platform] is the platform name defined in kitchen.yml, e.g. debian-9-2019-2-py3.

bin/kitchen converge

Creates the docker instance and runs the chrome main state, ready for testing.

bin/kitchen verify

Runs the inspec tests on the actual instance.

bin/kitchen destroy

Removes the docker instance.

bin/kitchen test

Runs all of the stages above in one go: i.e. destroy + converge + verify + destroy.

bin/kitchen login

Gives you SSH access to the instance for manual testing.

chrome-formula's People

Contributors

baby-gnu avatar noelmcloughlin avatar stratusjerry avatar

Stargazers

 avatar

Watchers

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

chrome-formula's Issues

Formula throws dependency error - libu2f-udev

Your setup

Formula commit hash / release tag

pwd
/srv/formulas/chrome-formula

cat FORMULA
name: chrome
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Darwin
os_family: Debian, RedHat, Suse, Arch, Alpine, MacOS
version: 0.4.0
release: 1
minimum_version: 2016.11
summary: chrome formula
description: Formula to install chrome and configure it.
top_level_dir: chrome

Versions reports (master & minion)

sudo salt -V chrome
[sudo] password for dnessett:
Salt Version:
Salt: 3005.1

Dependency Versions:
cffi: 1.14.6
cherrypy: unknown
dateutil: 2.8.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.1.0
libgit2: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.2
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.9.8
pygit2: Not Installed
Python: 3.9.16 (main, Jan 6 2023, 22:50:07)
python-gnupg: 0.4.8
PyYAML: 5.4.1
PyZMQ: 23.2.0
smmap: Not Installed
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.3.4

System Versions:
dist: linuxmint 21.1 vera
locale: utf-8
machine: x86_64
release: 5.15.0-58-generic

Pillar / config used

cat s68.sls

/srv/salt/s68.sls

student-68 group:
group.present:
- name: students-68
- gid: 1501
- system: false

include:

  • chrome

Bug details

Describe the bug

When running "sudo salt 'MOLS-S68-01' state.apply", Salt threw the following error:

MOLS-S68-01:

      ID: chrome-package-install-pkg-installed-directurl-linux
Function: pkg.installed
  Result: False
 Comment: Problem encountered installing package(s). Additional info follows:

          errors:
              - Running scope as unit: run-rded70e2774384faa8748424360477ed2.scope
                dpkg: dependency problems prevent configuration of google-chrome-stable:
                 google-chrome-stable depends on libu2f-udev; however:
                  Package libu2f-udev is not installed.

                dpkg: error processing package google-chrome-stable (--install):
                 dependency problems - leaving unconfigured
                Errors were encountered while processing:
                 google-chrome-stable
 Started: 18:19:18.540553
Duration: 11752.309 ms
 Changes:

After manually installing libu2f-udev on the MOLS-S68-01 minion, the installation was successful.

Steps to reproduce the bug

Expected behaviour

The Chrome Browser would be installed on the minion.

Attempts to fix the bug

Additional context

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.