Deployer: hosts.yml ranges

Created on 8 Aug 2018  路  7Comments  路  Source: deployphp/deployer

| Q | A
| ----------------- | ---
| Issue Type | Bug / Feature Request
| Deployer Version | 6
| Local Machine OS | OS X 10.13
| Remote Machine OS | Redhat 7

Description

Tried to add ranges to the host or hostname in the hosts.yml file

Not sure if this a bug or feature request but likely the latter

Steps to reproduce

production:
  hostname: www[01-05].example.com
  stage: production

Content of deploy.php


inventory('hosts.yml');

Output log

  The command "rm -f /var/www/example/.dep/deploy.lock" failed.
  Exit Code: -1 (Unknown error)
  Host Name: www[01:05].example.com
  ================
  ssh: Could not resolve hostname www[01:05].example.com: nodename nor servname provided, or not known
bug

All 7 comments

Oh this change looks promising https://github.com/deployphp/deployer/pull/1541

Will fix it.

Fixed.

Thanks @antonmedv

Should this work as well with the hostname key?

production:
  hostname: www[01-05].example.com
  stage: production

I gave it a whirl and doesn't seem to work with hostname key. But a big thanks, that was a fast fix!

I'll fix hostname in next v7 release, as I'm going to refactor this part of deployer.

I can work around that, thanks again for the fix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dima-stefantsov picture dima-stefantsov  路  4Comments

sweebee picture sweebee  路  3Comments

krve picture krve  路  4Comments

timkley picture timkley  路  4Comments

khoanguyen96 picture khoanguyen96  路  5Comments