Граф коммитов

14 Коммитов

Автор SHA1 Сообщение Дата
Eammon Hanlon ebeb1cedff Release 3.2: Add support for Proxy (#41)
* add support for forward proxies

* fix rubocop report

* Cookstyle changes for Chef 16

* Remove .foodcritic

* Update maintainer information metadata.rb

* Bump cookbook version

* More cookstyle fixes

* Remove .rubocop.yml

* Fix line endings

* Modernize and lint kitchen.yml

* Remove Travis CI

* Remove Rakefile

* Update license

* Update kitchen.yml to use kitchen-azurerm driver

* Remove .rspec file

* Add CHANGELOG for 3.2.0

* Fix SSH Transport for kitchen-azurerm

* Update libssl version for debian-10 and change liburl to curl

* Require Chef 14 as minimum version

* Rename .kitchen.yml to kitchen.yml

* Update CHANGELOG

* Remove macOS suites from kitchen

There is a separate Pipelines Agent Cookbook for macOS

* Remove Windows suites until a future release

Co-authored-by: Christian Blechert <christian@serverless.industries>
2020-06-26 14:27:45 -07:00
Esten Rye 9c763f177d Feature/resolve issue 32 (#33)
* remove require of chef/mixin/language

This mixin was removed from chef 14.*
See [this stackoverflow](https://stackoverflow.com/questions/49909084/cannot-load-such-file-chef-mixin-language)

Fixes Recipe Compile error in Chef 14.3.37:

```
       ================================================================================
       Recipe Compile Error in /tmp/kitchen/cache/cookbooks/vsts_agent/libraries/service.rb
       ================================================================================

       LoadError
       ---------
       cannot load such file -- chef/mixin/language

       Cookbook Trace:
       ---------------
         /tmp/kitchen/cache/cookbooks/vsts_agent/libraries/service.rb:4:in `<top (required)>'

       Relevant File Content:
       ----------------------
       /tmp/kitchen/cache/cookbooks/vsts_agent/libraries/service.rb:

         1:  require 'chef/resource/lwrp_base'
         2:  require 'chef/provider/lwrp_base'
         3:  require 'chef/mixin/shell_out'
         4>> require 'chef/mixin/language'
         5:
         6:  module VSTS
         7:    module Agent
         8:      # The service operations for vsts_agent
         9:      class Service
        10:        include Windows::Helper
        11:        include VSTS::Agent::Helpers
        12:        include Chef::DSL::PlatformIntrospection
        13:

       System Info:
       ------------
       chef_version=14.3.37
       platform=debian
       platform_version=8.11
       ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
       program_name=/opt/chef/bin/chef-client
       executable=/opt/chef/bin/chef-client

       Running handlers:
       [2018-08-17T17:57:39-07:00] ERROR: Running exception handlers
       [2018-08-17T17:57:39-07:00] ERROR: Running exception handlers
       Running handlers complete
       [2018-08-17T17:57:39-07:00] ERROR: Exception handlers complete
       [2018-08-17T17:57:39-07:00] ERROR: Exception handlers complete
       Chef Client failed. 0 resources updated in 01 seconds
       [2018-08-17T17:57:39-07:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2018-08-17T17:57:39-07:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
       [2018-08-17T17:57:39-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2018-08-17T17:57:39-07:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
       [2018-08-17T17:57:39-07:00] FATAL: LoadError: cannot load such file -- chef/mixin/language
       [2018-08-17T17:57:39-07:00] FATAL: LoadError: cannot load such file -- chef/mixin/language
```

#32

* Fix inability to find default recipe

For some reason the default recipe for build-essential isn't being deployed in 8.1.1.

I haven't figured out why.  Since the logic in that recipe is only 3 lines
long, I opted for using the resource rather than the recipe.

#32

* Fix syntax error that prvents convergence in chef 14.

The variable name and the method were conflicting with each other,
making the compiler not find the helper method.

#32

* Use >= instead of ~> syntax.

* Add missing installation of seven zip.

#32

* Copy win_friendly_path method to helpers library.

For some reason, I wasn't able to get the Windows::Helper library to successfully include itself.
Since the method was simple enough, and unlikely to change much, I felt
moving it into the helpers library made sense, in addition to fixing the issue.

#32

* Revert changes to linux cookbook.

Turns out I had a corupted berkshelf download.  Learning has occurred.
Inspect .bershelf on your dev box before assuming something is broken.

#32

* Add Windows Server 2016 to kitchen.yml

Add Windows Server 2016 with latest chef client to ensure changes work with latest chef.

* Re-add changes after merging latest upstream master.

* Uptick version for bug fix.

#32

* Update solution to utilize feedback provided by @ivadim.

Adds missing include statement.

#33

* Fix linting issues found in CI pipeline.

#32
2018-09-29 17:10:20 -07:00
Dmitry Ivanov e151cce0c8 Add chef-solo test execution to test on azure devops 2018-09-13 23:29:45 -07:00
ivadim 1fbedb20f6
Add support for deployment groups (#31)
* Add deployment groups support. Feature #27
2018-08-05 16:20:57 -07:00
ivadim ac16dbdef6
Refactor lwrp into new style custom resources to address #13 (#18) 2017-11-26 23:33:02 -08:00
Eric Hanko d6c2655e89 URL validation, improve macOS testing and testing guide (#8)
* Several improvements for Mac

- Add URL validation for VSTS_URL variable
- Update soon-to-be depracated node attributes from "set" to "default"
- Use homebrew for installing openssl on macOS
- More detailed and updated testing guide
- Fix style and foodcritic
2017-05-25 21:10:47 -07:00
ivadim 699e096041 Add chef13 support (#5)
* #4 enable chef 13 support

* Fix foodcritic and rubocop issues

* Set cookbook deployment to supermarket from travis-ci
2017-05-03 15:42:48 -07:00
Dmitry Ivanov 4660fd5034 Remove upgrade feature. Add env and path parameters. Bump agent version. Fix dependencies 2016-08-17 15:32:48 +02:00
Dmitry Ivanov 04ed81d0af Update readme 2016-06-29 15:48:18 +02:00
Dmitry Ivanov 12c8539d2b Rename cookbook to vsts-agent 2016-06-29 11:29:23 +02:00
Dmitry Ivanov 49292d698f Add ubuntu and osx dependencies. Fix rubocop issues. Add tests. Refactor service management. Add upgrade logic 2016-06-28 18:22:50 +02:00
Dmitry Ivanov a28f36a5a7 Refactoring to use new type of VSTS Build Agent 2016-06-15 13:30:09 +02:00
Dmitry Ivanov b5bd0ff110 Bump version to 0.1.3. Fix rubocop issues 2016-02-29 20:10:40 +01:00
Dmitry Ivanov e20a4249ae :bowtie: Initial commit 2016-01-20 16:36:39 +01:00